diff options
author | Stephen Wilson <wilsons@start.ca> | 2011-01-14 21:07:56 +0000 |
---|---|---|
committer | Stephen Wilson <wilsons@start.ca> | 2011-01-14 21:07:56 +0000 |
commit | 0b8dab726b38bfe531345dc6596f8ac9b1f21274 (patch) | |
tree | 3d4b815143b43c214b1323b9ba63bbdc8215103a /lldb/source/Target/Process.cpp | |
parent | 5394e0da9d2fd87751174e4245cc2da3eb620aa1 (diff) | |
download | bcm5719-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.cpp | 1 |
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; } |