forked from qt-creator/qt-creator
ConsoleProcess: Show correct exit code
Task-number: QTCREATORBUG-9740 Change-Id: I41721356b3612b6c98e774168f520ff49426271b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -295,12 +295,12 @@ void ConsoleProcess::readStubOutput()
|
||||
d->m_appStatus = QProcess::NormalExit;
|
||||
d->m_appCode = out.mid(5).toInt();
|
||||
d->m_appPid = 0;
|
||||
emit processStopped();
|
||||
emit processStopped(d->m_appCode, d->m_appStatus);
|
||||
} else if (out.startsWith("crash ")) {
|
||||
d->m_appStatus = QProcess::CrashExit;
|
||||
d->m_appCode = out.mid(6).toInt();
|
||||
d->m_appPid = 0;
|
||||
emit processStopped();
|
||||
emit processStopped(d->m_appCode, d->m_appStatus);
|
||||
} else {
|
||||
emit processError(msgUnexpectedOutput(out));
|
||||
d->m_stubPid = 0;
|
||||
@@ -323,7 +323,7 @@ void ConsoleProcess::stubExited()
|
||||
d->m_appStatus = QProcess::CrashExit;
|
||||
d->m_appCode = -1;
|
||||
d->m_appPid = 0;
|
||||
emit processStopped(); // Maybe it actually did not, but keep state consistent
|
||||
emit processStopped(d->m_appCode, d->m_appStatus); // Maybe it actually did not, but keep state consistent
|
||||
}
|
||||
emit stubStopped();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user