diff options
author | Christopher Faylor <me@cgf.cx> | 2011-12-09 16:02:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-12-09 16:02:56 +0000 |
commit | 57af01797e53a7a15187fa8ee8b1cad693116dd3 (patch) | |
tree | 8d3ea456998f0d95e3c81e932ef2df4f171099c7 /winsup/cygwin/fhandler_fifo.cc | |
parent | aaaaefc09030a8a047bf0a0ab112647ee8307af6 (diff) | |
download | cygnal-57af01797e53a7a15187fa8ee8b1cad693116dd3.tar.gz cygnal-57af01797e53a7a15187fa8ee8b1cad693116dd3.tar.bz2 cygnal-57af01797e53a7a15187fa8ee8b1cad693116dd3.zip |
Rename cygWFMO to cygwait throughout and use the magic of polymorphism to "wait
for stuff".
* fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use simplified arg
form of cygwait.
* fhandler_console.cc (fhandler_console::read): Ditto.
* fhandler_audio.cc (fhandler_dev_dsp::Audio_out::waitforspac): Ditto.
(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.
* select.cc (cygwin_select): Ditto.
* sigproc.h (cygwait): Rename from cygWFMO. Define two argument and single
argument forms of this function.
* fhandler_tty.cc (fhandler_pty_slave::open): Use method to query if tty is
open.
(fhandler_pty_slave::read): Send SIGHUP when master is detected as closed.
(fhandler_pty_common::close): Close input_available_event in callers since
master may need to signal it first.
(fhandler_pty_master::close): Lie and set input_available_event when closing,
then close input_available_event.
(fhandler_pty_slave::close): Close input_available_event explicitly here.
* tty.h (tty::is_master_closed): Declare new method.
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r-- | winsup/cygwin/fhandler_fifo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index c0aaf1e82..d34628660 100644 --- a/winsup/cygwin/fhandler_fifo.cc +++ b/winsup/cygwin/fhandler_fifo.cc @@ -216,7 +216,7 @@ fhandler_fifo::wait (HANDLE h) debug_only_printf ("waiting for %s", what); /* Wait for the event. Set errno, as appropriate if something goes wrong. */ - switch (cygWFMO (1, wait, h)) + switch (cygwait (h, wait)) { case WAIT_OBJECT_0: debug_only_printf ("successfully waited for %s", what); |