From 6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 5 Nov 2001 01:44:02 +0000 Subject: [PATCH] * pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe" test. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/pipe.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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);