]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sigproc.cc (exit_thread): Set thread signal mask so that no signals are sent
authorChristopher Faylor <me@cgf.cx>
Thu, 3 Jan 2013 05:05:10 +0000 (05:05 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 3 Jan 2013 05:05:10 +0000 (05:05 +0000)
to an exiting thread.

winsup/cygwin/ChangeLog
winsup/cygwin/sigproc.cc

index d962ca60110057a0166ca9af8e0289aa9bd57968..3b28859ac9163ab2318832285d64690d2d002e0a 100644 (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
index 122f4f865f087a1ecb572b1f988c49cf60be692e..4e80940737be86b4e3252ceb5bd2acfebdf07933 100644 (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 ();
This page took 0.030975 seconds and 5 git commands to generate.