]> sourceware.org Git - newlib-cygwin.git/commitdiff
Avoid double unlock of TLS mutex
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 30 Oct 2015 16:21:30 +0000 (17:21 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 30 Oct 2015 16:21:30 +0000 (17:21 +0100)
* exceptions.cc (sigpacket::process): Avoid potentially double unlocking
the TLS mutex.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/ChangeLog
winsup/cygwin/exceptions.cc

index 3fb4372ac1ce617e6cd2ba63ac94e03632355dfe..3c489d1940f1b4eb8c4a4573cb17aff8d90e8d05 100644 (file)
@@ -1,5 +1,10 @@
 2015-10-30  Corinna Vinschen  <corinna@vinschen.de>
 
+       * exceptions.cc (sigpacket::process): Avoid potentially double unlocking
+       the TLS mutex.
+
+2015-10-30  Corinna Vinschen  <corinna@vinschen.d>
+
        * signal.cc (sigwait): Fix return value to reflect errno in case of
        error according to POSIX.  Never return EINTR.
        * thread.cc (pthread_kill): Return errno if sig_send failed.
index 60f09d6547815e1e2922a73a9f4bcc95683b7ee0..9119a8c083e289a1ed3eb61d19cfb0b61a7b5d3e 100644 (file)
@@ -1475,10 +1475,7 @@ sigpacket::process ()
          else if (!sigismember (&tls->sigmask, si.si_signo))
            issig_wait = false;
          else
-           {
-             cygheap->unlock_tls (tl_entry);
-             tls = NULL;
-           }
+           tls = NULL;
        }
     }
       
This page took 0.036048 seconds and 5 git commands to generate.