aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-11-05 01:44:02 +0000
committerChristopher Faylor <me@cgf.cx>2001-11-05 01:44:02 +0000
commit6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf (patch)
treeeb45f46830396f533d6ee57c0d40b128030f49f1
parent915d1824f7eae24e2075842af9a7a92a40c450e4 (diff)
downloadnewlib-6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf.zip
newlib-6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf.tar.gz
newlib-6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf.tar.bz2
* pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe"
test.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pipe.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7453ead..b805069 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2001-11-04 Christopher Faylor <cgf@redhat.com>
+ * pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken
+ pipe" test.
+
+2001-11-04 Christopher Faylor <cgf@redhat.com>
+
* select.cc: Add more comments throughout. Use bool 'true' where
appropriate throughout.
(fhandler_socket::select_read): Remove duplicate setting for *_ready
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 87d226b..fea2599 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -52,7 +52,7 @@ fhandler_pipe::set_close_on_exec (int val)
int __stdcall
fhandler_pipe::read (void *in_ptr, size_t in_len)
{
- if (hit_eof ())
+ if (saweof)
return 0;
int res = this->fhandler_base::read (in_ptr, in_len);
(void) ReleaseMutex (guard);