diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-04 22:32:00 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-04 22:32:00 +0400 |
commit | 79e59d522afe5692c09ab21eade08947eca3ec19 (patch) | |
tree | cd44280ba1c10616a5bb8d19ed01f2681d75045c /winsup/cygwin/select.cc | |
parent | 4510afa90d42eec08a2ec91f4203ed126ab998c8 (diff) |
* sigproc.cc (cygWFMO): Don't assume that cancellable event is always
available.
* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::waitforspace): Use cygWFMO
instead of WaitForMultipleObjects.
(fhandler_dev_dsp::Audio_in::waitfordata): Ditto.
* fhandler_fifo.cc (fhandler_fifo::wait): Ditto.
* fhandler_serial.cc (fhandler_serial::raw_read): Ditto.
(fhandler_serial::raw_write): Ditto.
* fhandler_tty.cc (fhandler_pty_slave::read): Ditto.
* select.cc (cygwin_select): Ditto for degenerate case.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 4e68041ba..b8135954e 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -133,10 +133,7 @@ cygwin_select (int maxfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, /* Degenerate case. No fds to wait for. Just wait. */ if (sel.start.next == NULL) { - HANDLE w4[2] = { signal_arrived, pthread::get_cancel_event () }; - DWORD cnt = w4[1] ? 2 : 1; - - switch (WaitForMultipleObjects (cnt, w4, FALSE, ms)) + switch (cygWFMO (0, ms)) { case WAIT_OBJECT_0: select_printf ("signal received"); |