* globals.cc (exit_states): Renumber so that ES_EXIT_STARTING is first, as
intended. * sigproc.cc (wait_sig): Only stop accepting signals after exit_state > ES_EXIT_STARTING.
This commit is contained in:
parent
fba91299d7
commit
0fd830efdf
@ -1,3 +1,10 @@
|
|||||||
|
2013-01-03 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
|
* globals.cc (exit_states): Renumber so that ES_EXIT_STARTING is first,
|
||||||
|
as intended.
|
||||||
|
* sigproc.cc (wait_sig): Only stop accepting signals after
|
||||||
|
exit_state > ES_EXIT_STARTING.
|
||||||
|
|
||||||
2013-01-03 Christopher Faylor <me.cygwin2013@cgf.cx>
|
2013-01-03 Christopher Faylor <me.cygwin2013@cgf.cx>
|
||||||
|
|
||||||
* sigproc.cc (exit_thread): Set thread signal mask so that no signals
|
* sigproc.cc (exit_thread): Set thread signal mask so that no signals
|
||||||
|
@ -34,8 +34,8 @@ UINT system_wow64_directory_length;
|
|||||||
enum exit_states
|
enum exit_states
|
||||||
{
|
{
|
||||||
ES_NOT_EXITING = 0,
|
ES_NOT_EXITING = 0,
|
||||||
ES_SIGNAL_EXIT,
|
|
||||||
ES_EXIT_STARTING,
|
ES_EXIT_STARTING,
|
||||||
|
ES_SIGNAL_EXIT,
|
||||||
ES_PROCESS_LOCKED,
|
ES_PROCESS_LOCKED,
|
||||||
ES_EVENTS_TERMINATE,
|
ES_EVENTS_TERMINATE,
|
||||||
ES_SIGNAL,
|
ES_SIGNAL,
|
||||||
|
@ -1335,7 +1335,7 @@ wait_sig (VOID *)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Don't process signals when we start exiting */
|
/* Don't process signals when we start exiting */
|
||||||
if (exit_state && pack.si.si_signo > 0)
|
if (exit_state > ES_EXIT_STARTING && pack.si.si_signo > 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
sigset_t dummy_mask;
|
sigset_t dummy_mask;
|
||||||
|
Loading…
Reference in New Issue
Block a user