* 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:
Christopher Faylor 2013-01-04 02:21:03 +00:00
parent fba91299d7
commit 0fd830efdf
3 changed files with 9 additions and 2 deletions

View File

@ -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>
* sigproc.cc (exit_thread): Set thread signal mask so that no signals

View File

@ -34,8 +34,8 @@ UINT system_wow64_directory_length;
enum exit_states
{
ES_NOT_EXITING = 0,
ES_SIGNAL_EXIT,
ES_EXIT_STARTING,
ES_SIGNAL_EXIT,
ES_PROCESS_LOCKED,
ES_EVENTS_TERMINATE,
ES_SIGNAL,

View File

@ -1335,7 +1335,7 @@ wait_sig (VOID *)
}
/* 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;
sigset_t dummy_mask;