* 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:
@ -43,9 +43,6 @@ int __sp_ln;
|
||||
|
||||
char NO_COPY myself_nowait_dummy[1] = {'0'};// Flag to sig_send that signal goes to
|
||||
// current process but no wait is required
|
||||
HANDLE NO_COPY signal_arrived; // Event signaled when a signal has
|
||||
// resulted in a user-specified
|
||||
// function call
|
||||
|
||||
#define Static static NO_COPY
|
||||
|
||||
@ -518,17 +515,6 @@ sig_dispatch_pending (bool fast)
|
||||
sig_send (myself, fast ? __SIGFLUSHFAST : __SIGFLUSH);
|
||||
}
|
||||
|
||||
void __stdcall
|
||||
create_signal_arrived ()
|
||||
{
|
||||
if (signal_arrived)
|
||||
return;
|
||||
/* local event signaled when main thread has been dispatched
|
||||
to a signal handler function. */
|
||||
signal_arrived = CreateEvent (&sec_none_nih, false, false, NULL);
|
||||
ProtectHandle (signal_arrived);
|
||||
}
|
||||
|
||||
/* Signal thread initialization. Called from dll_crt0_1.
|
||||
This routine starts the signal handling thread. */
|
||||
void __stdcall
|
||||
|
Reference in New Issue
Block a user