Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-06-28 22:23:35 +0400
committerChristopher Faylor <me@cgf.cx>2009-06-28 22:23:35 +0400
commit91000b5d66688fe62926edc72a00f00c9cda30ab (patch)
treeab91f851af48612503d3ac3e46353508bcce27b8 /winsup/cygwin/select.cc
parentd0880d6200dc27d472c5151020f48078aae552a5 (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.cc4
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