* pipe.cc (fhandler_pipe::read): Narrow eof return to just the "broken pipe"

test.
This commit is contained in:
Christopher Faylor 2001-11-05 01:44:02 +00:00
parent 915d1824f7
commit 6e8b4dcdf1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);