apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r571728 - /apr/apr/trunk/file_io/win32/readwrite.c
Date Sat, 01 Sep 2007 07:26:22 GMT
Author: wrowe
Date: Sat Sep  1 00:26:19 2007
New Revision: 571728

URL: http://svn.apache.org/viewvc?rev=571728&view=rev
Log:
Correctly handle completion-based read-to-EOF case.
Resolves testfile, still have testpipe and testproc
to contend with.

Submitted by: Steven Naim <steven.naim googlemail.com>

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

Modified: apr/apr/trunk/file_io/win32/readwrite.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/win32/readwrite.c?rev=571728&r1=571727&r2=571728&view=diff
==============================================================================
--- apr/apr/trunk/file_io/win32/readwrite.c (original)
+++ apr/apr/trunk/file_io/win32/readwrite.c Sat Sep  1 00:26:19 2007
@@ -122,6 +122,9 @@
         if (rv == APR_FROM_OS_ERROR(ERROR_BROKEN_PIPE)) {
             /* Assume ERROR_BROKEN_PIPE signals an EOF reading from a pipe */
             rv = APR_EOF;
+        } else if (rv == APR_FROM_OS_ERROR(ERROR_HANDLE_EOF)) {
+            /* Did we hit EOF reading from the handle? */
+            rv = APR_EOF;
         }
     }
     



Mime
View raw message