summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_fifo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index a7aecef96..ae5705483 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -210,15 +210,13 @@ fhandler_fifo::wait (HANDLE h)
else
what = "overlapped event";
#endif
- HANDLE w4[3] = {h, signal_arrived, pthread::get_cancel_event ()};
-
/* Set the wait to zero for non-blocking I/O-related events. */
DWORD wait = ((h == read_ready || h == write_ready)
&& get_flags () & O_NONBLOCK) ? 0 : INFINITE;
debug_only_printf ("waiting for %s", what);
/* Wait for the event. Set errno, as appropriate if something goes wrong. */
- switch (WaitForMultipleObjects (3, w4, false, wait))
+ switch (cygWFMO (1, wait))
{
case WAIT_OBJECT_0:
debug_only_printf ("successfully waited for %s", what);