Implement ProcessLauncher::processId()

Implement the reply confirmation for the started signal.
After qtcreator_processlauncher starts a new process
we connect to its started() signal and post a reply through
the socket to the LauncherInterface with the information about
the new PID. ProcessLauncherImpl now emits the started signal
with a delay, just after the confirmation has been received.

Change-Id: I2689e8e97b17466bd1f6b32c01909c12d80fcdef
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Jarek Kobus
2021-07-12 15:49:20 +02:00
parent f8e0f6eb91
commit d8286adc7c
6 changed files with 61 additions and 5 deletions

View File

@@ -100,6 +100,7 @@ void LauncherSocket::handleSocketDataAvailable()
}
switch (m_packetParser.type()) {
case LauncherPacketType::ProcessError:
case LauncherPacketType::ProcessStarted:
case LauncherPacketType::ProcessFinished:
emit packetArrived(m_packetParser.type(), m_packetParser.token(),
m_packetParser.packetData());