apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r378053 - /apr/apr/trunk/file_io/win32/readwrite.c
Date Wed, 15 Feb 2006 18:43:12 GMT
Author: wrowe
Date: Wed Feb 15 10:43:09 2006
New Revision: 378053

URL: http://svn.apache.org/viewcvs?rev=378053&view=rev
Log:

  Sync Win32 behavior with Unix behavior for unbuffered file i/o
  on apr_file_flush().  Note this also makes unbuffered file i/o
  on win32 consistent with the buffered i/o behavior on the same.

PR: 33485
Reported by: Curt Arnold <carnold@apache.org>.


Modified:
    apr/apr/trunk/file_io/win32/readwrite.c

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/win32/readwrite.c?rev=378053&r1=378052&r2=378053&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Wed Feb 15 10:43:09 2006
@@ -483,10 +483,12 @@
         }
 
         return rc;
-    } else {
-        FlushFileBuffers(thefile->filehand);
-        return APR_SUCCESS;
     }
+
+    /* There isn't anything to do if we aren't buffering the output
+     * so just return success.
+     */
+    return APR_SUCCESS; 
 }
 
 struct apr_file_printf_data {



Mime
View raw message