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
This commit is contained in:
Greg Clayton 2015-06-03 00:34:01 +00:00
parent c6eb650120
commit 23d54f4eac
1 changed files with 2 additions and 2 deletions

View File

@ -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)