forked from qt-creator/qt-creator
Fix up QProcess::waitForFinished()
waitForFinish returns false if the process is no longer running at the time of the call. Handle that throughout the codebase. Change-Id: Ia7194095454e82efbd4eb88f2d55926bdd09e094 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -187,7 +187,7 @@ Utils::Port IosSimulator::nextPort() const
|
||||
if (!portVerifier.waitForStarted())
|
||||
break;
|
||||
portVerifier.closeWriteChannel();
|
||||
if (!portVerifier.waitForFinished())
|
||||
if (!portVerifier.waitForFinished() && portVerifier.state() == QProcess::Running)
|
||||
break;
|
||||
if (portVerifier.exitStatus() != QProcess::NormalExit
|
||||
|| portVerifier.exitCode() != 0)
|
||||
|
||||
Reference in New Issue
Block a user