diff --git a/src/libs/utils/deviceshell.cpp b/src/libs/utils/deviceshell.cpp index 1712f5390f8..dd0abd107cf 100644 --- a/src/libs/utils/deviceshell.cpp +++ b/src/libs/utils/deviceshell.cpp @@ -182,6 +182,8 @@ bool DeviceShell::start() setupShellProcess(m_shellProcess.get()); + CommandLine cmdLine = m_shellProcess->commandLine(); + m_shellProcess->setProcessMode(ProcessMode::Writer); // Moving the process into its own thread ... @@ -232,7 +234,7 @@ bool DeviceShell::start() &result); if (!result) { - startupFailed(m_shellProcess->commandLine()); + startupFailed(cmdLine); } return result;