summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorStephen Wilson <wilsons@start.ca>2011-01-14 21:07:56 +0000
committerStephen Wilson <wilsons@start.ca>2011-01-14 21:07:56 +0000
commit0b8dab726b38bfe531345dc6596f8ac9b1f21274 (patch)
tree3d4b815143b43c214b1323b9ba63bbdc8215103a /lldb/source/Target/Process.cpp
parent5394e0da9d2fd87751174e4245cc2da3eb620aa1 (diff)
downloadbcm5719-llvm-0b8dab726b38bfe531345dc6596f8ac9b1f21274.tar.gz
bcm5719-llvm-0b8dab726b38bfe531345dc6596f8ac9b1f21274.zip
Do not prematurely invalidate thread handle.
Setting m_private_state_thread to an invalid value when the child thread exits results in a race condition between calls to ThreadCancel and ThreadJoin. llvm-svn: 123465
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index fdfa3a66f47..5834b8d92d7 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -2173,7 +2173,6 @@ Process::RunPrivateStateThread ()
if (log)
log->Printf ("Process::%s (arg = %p, pid = %i) thread exiting...", __FUNCTION__, this, GetID());
- m_private_state_thread = LLDB_INVALID_HOST_THREAD;
return NULL;
}
OpenPOWER on IntegriCloud