Переглянути джерело

2002-09-21 Miguel de Icaza <[email protected]>

	* FileStream.cs: Do not call FSync on the file.

svn path=/trunk/mcs/; revision=7710
Miguel de Icaza 23 роки тому
батько
коміт
e335c3c1a5

+ 4 - 0
mcs/class/corlib/System.IO/ChangeLog

@@ -1,3 +1,7 @@
+2002-09-21  Miguel de Icaza  <[email protected]>
+
+	* FileStream.cs: Do not call FSync on the file.
+
 2002-09-16  Miguel de Icaza  <[email protected]>
 
 	* TextWriter.cs (Null): The Null field should be an instance of a

+ 6 - 1
mcs/class/corlib/System.IO/FileStream.cs

@@ -233,7 +233,12 @@ namespace System.IO
 		public override void Flush ()
 		{
 			FlushBuffer ();
-			MonoIO.Flush (handle);
+
+			//
+			// The flushing is not actually required, in the mono runtime we were
+			// mapping flush to `fsync' which is not the same.
+			//
+			//MonoIO.Flush (handle);
 		}
 
 		public override void Close ()