Commit e132df47 authored by Ragnar Thomsen's avatar Ragnar Thomsen

Wait for 1sec after killing KPtyProcess in CliInterface::doKill()

It takes a few hundred milliseconds for the KPtyProcess to be killed,
so we wait up to 1 second before continuing. This was causing an assert
failure in CliInterface destructor when stopping a running job for

Differential Revision: D1467
parent a54ab3a6
...@@ -1082,6 +1082,9 @@ bool CliInterface::doKill() ...@@ -1082,6 +1082,9 @@ bool CliInterface::doKill()
m_abortingOperation = true; m_abortingOperation = true;
if (!m_process->waitForFinished(5)) { if (!m_process->waitForFinished(5)) {
m_process->kill(); m_process->kill();
// It takes a few hundred ms for the process to be killed.
} }
m_abortingOperation = false; m_abortingOperation = false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment