diff options
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index e54f11f2a..0208a4863 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -36,6 +36,7 @@ details. */ #include <asm/socket.h> #include "sync.h" #include "child_info.h" +#include "cygwait.h" /* Don't make this bigger than NT_MAX_PATH as long as the temporary buffer is allocated using tmp_pathbuf!!! */ @@ -355,9 +356,9 @@ fhandler_console::read (void *pv, size_t& buflen) { case WAIT_OBJECT_0: break; - case WAIT_OBJECT_0 + 1: + case WAIT_SIGNALED: goto sig_exit; - case WAIT_OBJECT_0 + 2: + case WAIT_CANCELED: process_state.pop (); pthread::static_cancel_self (); /*NOTREACHED*/ |