From 9bab9bfeb5a9eb0247ebe2edd261eb7b93887a1b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 7 Dec 2011 03:07:25 +0000 Subject: [PATCH] * fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually wait for the handle. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_fifo.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7f33e9ac3..9acf2b34b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-12-06 Christopher Faylor + + * fhandler_fifo.cc (fhandler_fifo::wait): Fix stupid typo and actually + wait for the handle. + 2011-12-05 Christopher Faylor * sigproc.cc (close_my_readsig): New function. diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc index ae5705483..c0aaf1e82 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)) + switch (cygWFMO (1, wait, h)) { case WAIT_OBJECT_0: debug_only_printf ("successfully waited for %s", what);