Avoid double unlock of TLS mutex
* exceptions.cc (sigpacket::process): Avoid potentially double unlocking the TLS mutex. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
8f97c045b8
commit
4a407e9037
|
@ -1,5 +1,10 @@
|
||||||
2015-10-30 Corinna Vinschen <corinna@vinschen.de>
|
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
|
* signal.cc (sigwait): Fix return value to reflect errno in case of
|
||||||
error according to POSIX. Never return EINTR.
|
error according to POSIX. Never return EINTR.
|
||||||
* thread.cc (pthread_kill): Return errno if sig_send failed.
|
* thread.cc (pthread_kill): Return errno if sig_send failed.
|
||||||
|
|
|
@ -1475,10 +1475,7 @@ sigpacket::process ()
|
||||||
else if (!sigismember (&tls->sigmask, si.si_signo))
|
else if (!sigismember (&tls->sigmask, si.si_signo))
|
||||||
issig_wait = false;
|
issig_wait = false;
|
||||||
else
|
else
|
||||||
{
|
tls = NULL;
|
||||||
cygheap->unlock_tls (tl_entry);
|
|
||||||
tls = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue