* cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt
handling of call_signal_handler. * cygwait.h (WAIT_CANCELED): Move here and redefine. (WAIT_SIGNALED): Ditto. * thread.h (WAIT_CANCELED): Delete. (WAIT_SIGNALED): Ditto.
This commit is contained in:
@@ -96,7 +96,8 @@ fhandler_windows::read (void *buf, size_t& len)
|
||||
return;
|
||||
}
|
||||
|
||||
HANDLE w4[3] = { get_handle (), signal_arrived, NULL };
|
||||
HANDLE w4[3] = { get_handle (), };
|
||||
set_thread_waiting (w4[1]);
|
||||
DWORD cnt = 2;
|
||||
if ((w4[cnt] = pthread::get_cancel_event ()) != NULL)
|
||||
++cnt;
|
||||
|
Reference in New Issue
Block a user