* sigproc.cc (exit_thread): Set thread signal mask so that no signals are sent

to an exiting thread.
This commit is contained in:
Christopher Faylor 2013-01-03 05:05:10 +00:00
parent d8e0d0a1b9
commit fba91299d7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-01-03 Christopher Faylor <me.cygwin2013@cgf.cx>
* sigproc.cc (exit_thread): Set thread signal mask so that no signals
are sent to an exiting thread.
2013-01-02 Christopher Faylor <me.cygwin2013@cgf.cx>
* sigproc.cc (no_signals_available): Remove exit_state test since

View File

@ -488,7 +488,8 @@ sigproc_terminate (exit_states es)
void
exit_thread (DWORD res)
{
lock_process for_now; /* May block indefinitely if we're exiting. */
sigfillset (&_my_tls.sigmask); /* No signals wanted */
lock_process for_now; /* May block indefinitely when exiting. */
if (exit_state)
{
for_now.release ();