diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/pipe.cc | 2 |
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); |