* exceptions.cc (sigpacket::process): Avoid a potential deadlock when exiting

due to a signal.
This commit is contained in:
Christopher Faylor 2011-10-28 17:32:38 +00:00
parent 8b5e267bb8
commit 673a691372
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-10-28 Christopher Faylor <me.cygwin2011@cgf.cx>
* exceptions.cc (sigpacket::process): Avoid a potential deadlock when
exiting due to a signal.
2011-10-28 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (getgrouplist): Export.

View File

@ -1321,6 +1321,7 @@ exit_sig:
if (cygheap->rlim_core > 0UL)
si.si_signo |= 0x80;
}
SetEvent (signal_arrived); // To avoid a potential deadlock with proc_lock
sigproc_printf ("signal %d, about to call do_exit", si.si_signo);
use_tls->signal_exit (si.si_signo); /* never returns */
}