diff options
author | Christopher Faylor <me@cgf.cx> | 2001-11-05 01:52:20 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-11-05 01:52:20 +0000 |
commit | e25e893d6b13fdb6c8af1aee7644cf54cad16623 (patch) | |
tree | a782159c65e07f9ba18ccb2fa8649376c7b52688 /winsup/cygwin/pipe.cc | |
parent | 6e8b4dcdf1e467c51560bcc0b0cd919fabaa24cf (diff) | |
download | newlib-e25e893d6b13fdb6c8af1aee7644cf54cad16623.zip newlib-e25e893d6b13fdb6c8af1aee7644cf54cad16623.tar.gz newlib-e25e893d6b13fdb6c8af1aee7644cf54cad16623.tar.bz2 |
* fhandler.h (fhandler_pipe::broken_pipe): Renamed from saweof.
(fhandler_pipe::set_eof): Reflect above change.
* pipe.cc (fhandler_pipe::fhandler_pipe): Ditto.
(fhandler_pipe::read): Ditto.
(fhandler_pipe::hiteof): Ditto.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r-- | winsup/cygwin/pipe.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc index fea2599..b8787fe 100644 --- a/winsup/cygwin/pipe.cc +++ b/winsup/cygwin/pipe.cc @@ -26,7 +26,7 @@ static unsigned pipecount; static const NO_COPY char pipeid_fmt[] = "stupid_pipe.%u.%u"; fhandler_pipe::fhandler_pipe (DWORD devtype) - : fhandler_base (devtype), guard (NULL), saweof (false), writepipe_exists(0), + : fhandler_base (devtype), guard (NULL), broken_pipe (false), writepipe_exists(0), orig_pid (0), id (0) { } @@ -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 (saweof) + if (broken_pipe) return 0; int res = this->fhandler_base::read (in_ptr, in_len); (void) ReleaseMutex (guard); @@ -74,7 +74,7 @@ fhandler_pipe::hit_eof () { char buf[80]; HANDLE ev; - if (saweof) + if (broken_pipe) return 1; if (!orig_pid) return false; |