forked from qt-creator/qt-creator
RemoteLinux: Provide proper exit status
If ssh exits with exit code 255, it typically means the process crashed. Change-Id: I884cfbce94da147c9f53b28f7eedd4d8e698af6d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -555,6 +555,11 @@ void SshProcessInterfacePrivate::handleDone()
|
|||||||
finalData.m_errorString = Utils::joinStrings({finalData.m_errorString,
|
finalData.m_errorString = Utils::joinStrings({finalData.m_errorString,
|
||||||
QString::fromLocal8Bit(m_error)}, '\n');
|
QString::fromLocal8Bit(m_error)}, '\n');
|
||||||
}
|
}
|
||||||
|
if (finalData.m_exitCode == 255) {
|
||||||
|
finalData.m_exitStatus = QProcess::CrashExit;
|
||||||
|
finalData.m_error = QProcess::Crashed;
|
||||||
|
finalData.m_errorString = Tr::tr("The process crashed.");
|
||||||
|
}
|
||||||
emit q->done(finalData);
|
emit q->done(finalData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user