Commit 66bbfd9f authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Locator: Wait for the process to start in execute filter



finished() signal is insufficient

Change-Id: I591b5b6494218c8fc8a16f4d79c91a844105233a
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
parent 3c7af784
......@@ -168,6 +168,11 @@ void ExecuteFilter::runHeadCommand()
m_process->setCommand(fullPath, d.arguments);
m_process->start();
m_process->closeWriteChannel();
if (!m_process->waitForStarted(1000)) {
MessageManager::write(tr("Could not start process: %1").arg(m_process->errorString()));
m_taskQueue.dequeue();
runHeadCommand();
}
}
}
......
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