diff options
author | Greg Clayton <gclayton@apple.com> | 2015-06-03 00:34:01 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2015-06-03 00:34:01 +0000 |
commit | 23d54f4eace2e02d2750bb016b133f30d62bb4a2 (patch) | |
tree | 6c2a720ac78a534a3084dfa808e1b4e0bce002cb /lldb/source/Target/Process.cpp | |
parent | c6eb650120b879e6fa64a6507b2a03365304d9f1 (diff) | |
download | bcm5719-llvm-23d54f4eace2e02d2750bb016b133f30d62bb4a2.tar.gz bcm5719-llvm-23d54f4eace2e02d2750bb016b133f30d62bb4a2.zip |
Fixed a deadlock that was slowing down processes when they shut down. A 3 second delay could occur sometimes when a process exits, now that delay is gone.
llvm-svn: 238893
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index cc3b8761f0a..637360d4864 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1455,8 +1455,8 @@ Process::SetExitStatus (int status, const char *cstr) m_exit_string.clear(); // When we exit, we no longer need to the communication channel - m_stdio_communication.StopReadThread(); m_stdio_communication.Disconnect(); + m_stdio_communication.StopReadThread(); m_stdin_forward = false; // And we don't need the input reader anymore as well @@ -4036,8 +4036,8 @@ Process::Destroy (bool force_kill) DidDestroy(); StopPrivateStateThread(); } - m_stdio_communication.StopReadThread(); m_stdio_communication.Disconnect(); + m_stdio_communication.StopReadThread(); m_stdin_forward = false; if (m_process_input_reader) |