Fixed CThreadRep to not raise a signal on the thread if it's

already dead.  Otherwise the signal could propagate to the
parent thread (at least on linux threads) and cause havoc.
This commit is contained in:
crs 2002-10-17 21:37:37 +00:00
parent 1d7f3d2aaf
commit 09e0750a11
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ void
CThreadRep::cancel()
{
CLock lock(s_mutex);
if (m_cancellable && !m_cancelling) {
if (!m_exit && m_cancellable && !m_cancelling) {
m_cancel = true;
}
else {