* FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
Flush calls fsync().
The API docs show no explicit mention that Flush() should even do
an fsync, I am thinking that we should drop that from the
runtime.
This significantly improves the thumbnail creation in mPhoto
svn path=/trunk/mcs/; revision=7473
+2002-09-15 Miguel de Icaza <miguel@ximian.com>
+
+ * FileStream.cs (Dispose): Call FlushBuffer(), and not Flush, as
+ Flush calls fsync().
+
+ The API docs show no explicit mention that Flush() should even do
+ an fsync, I am thinking that we should drop that from the
+ runtime.
+
2002-09-09 Miguel de Icaza <miguel@ximian.com>
* StreamWriter.cs: When no encoding is provided, create an
\r
protected virtual void Dispose (bool disposing) {\r
if (handle != MonoIO.InvalidHandle) {\r
- Flush ();\r
+ FlushBuffer ();\r
MonoIO.Close (handle);\r
\r
handle = MonoIO.InvalidHandle;\r