diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-28 06:06:45 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-28 06:06:45 +0000 |
commit | 9c61aed684d15af5348870fcb271ca20dbc51e9b (patch) | |
tree | ea5be84cff4f2566e92f86dd12e87bb49d7b7bbd | |
parent | f4f30cf14087c45ace30dd5bc2dfeabb1a983001 (diff) | |
download | cygnal-9c61aed684d15af5348870fcb271ca20dbc51e9b.tar.gz cygnal-9c61aed684d15af5348870fcb271ca20dbc51e9b.tar.bz2 cygnal-9c61aed684d15af5348870fcb271ca20dbc51e9b.zip |
* pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is no EOF
event available.
-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 dc449585d..ef093c28f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 28 01:50:09 2001 Christopher Faylor <cgf@cygnus.com> + + * pipe.cc (fhandler_pipe::hit_eof): Return correct value when there is + no EOF event available. + Sat Sep 28 00:34:00 2001 Corinna Vinschen <corinna@vinschen.de> * mmap.cc (mmap): Move setting the access after evaluating fd. diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index aab242b89..1166b511d 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -75,7 +75,7 @@ fhandler_pipe::hit_eof () char buf[80]; HANDLE ev; if (!orig_pid) - return bg_ok; + return false; __small_sprintf (buf, pipeid_fmt, orig_pid, id); if ((ev = OpenEvent (EVENT_ALL_ACCESS, FALSE, buf))) CloseHandle (ev); |