summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/select.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 26cb3b40e..e9dac26ce 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -513,9 +513,7 @@ 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 () && fh->get_overlapped ()->hEvent
- && WaitForSingleObject (fh->get_overlapped ()->hEvent, 0)
- != WAIT_OBJECT_0)
+ else if (fh->has_ongoing_io ())
s->write_ready = false;
else
{