You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2007/09/01 09:26:22 UTC
svn commit: r571728 - /apr/apr/trunk/file_io/win32/readwrite.c
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;
}
}