diff options
author | Christopher Faylor <me@cgf.cx> | 2009-06-28 22:23:35 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-06-28 22:23:35 +0400 |
commit | 91000b5d66688fe62926edc72a00f00c9cda30ab (patch) | |
tree | ab91f851af48612503d3ac3e46353508bcce27b8 /winsup/cygwin/select.cc | |
parent | d0880d6200dc27d472c5151020f48078aae552a5 (diff) |
* gendef (cleanup): Rename from 'nocr'. Remove comments and trailing spaces.
* cygwin.din: Add long-needed comment describing what dll_crt0__FP11per_process
demangles to.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 747444884..c3dc0055b 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -513,6 +513,10 @@ out: else if (fh->get_device () == FH_PIPER) select_printf ("%s, select for write on read end of pipe", fh->get_name ()); + else if (fh->get_overlapped ()->hEvent + && WaitForSingleObject (fh->get_overlapped ()->hEvent, 0) + != WAIT_OBJECT_0) + s->write_ready = false; else { #if 0 |