forked from qt-creator/qt-creator
Utils: Send ack from Process stub
Allow the server to listen for command results. Fixes Qt Creator hanging when stopping application being debugged. Change-Id: Ia175b1bb1836b5593bc073394fa152923e1dda28 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -183,6 +183,8 @@ void TerminalInterface::onStubReadyRead()
|
||||
emitFinished(out.mid(5).toInt(), QProcess::NormalExit);
|
||||
} else if (out.startsWith("crash ")) {
|
||||
emitFinished(out.mid(6).toInt(), QProcess::CrashExit);
|
||||
} else if (out.startsWith("ack ")) {
|
||||
qCDebug(terminalInterfaceLog) << "Received ack from stub: " << out;
|
||||
} else {
|
||||
emitError(QProcess::UnknownError, msgUnexpectedOutput(out));
|
||||
break;
|
||||
|
||||
@@ -542,6 +542,8 @@ void onControlSocketReadyRead()
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sendMsg(QString("ack %1\n").arg(ch).toUtf8());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user