* dcrt0.cc (do_exit): Eliminate "C" linkage. Call events_terminate early.
(exit_states): Move out of source file into header file. * winsup.h: Move exit_states here. Remove "C" linkage from do_exit declaration. * debug.cc (lock_debug): Remove explicit (and incorrect) external for exit_state. * sigproc.cc (sig_dispatch_pending): Don't flush signals if exiting.
This commit is contained in:
@@ -557,7 +557,7 @@ sigpending (sigset_t *set)
|
||||
extern "C" int __stdcall
|
||||
sig_dispatch_pending ()
|
||||
{
|
||||
if (!hwait_sig || GetCurrentThreadId () == sigtid)
|
||||
if (exit_state || !hwait_sig || GetCurrentThreadId () == sigtid)
|
||||
return 0;
|
||||
|
||||
sigframe thisframe (mainthread);
|
||||
|
Reference in New Issue
Block a user