diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7453ead5c..b80506916 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2001-11-04 Christopher Faylor + + * pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken + pipe" test. + 2001-11-04 Christopher Faylor * select.cc: Add more comments throughout. Use bool 'true' where diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index 87d226baa..fea25999f 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);