From 09e0750a1147bc7eff061959ea2a986e38d5e596 Mon Sep 17 00:00:00 2001 From: crs Date: Thu, 17 Oct 2002 21:37:37 +0000 Subject: [PATCH] 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. --- lib/mt/CThreadRep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mt/CThreadRep.cpp b/lib/mt/CThreadRep.cpp index 1e487cf2..bc92ba8b 100644 --- a/lib/mt/CThreadRep.cpp +++ b/lib/mt/CThreadRep.cpp @@ -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 {