diff --git a/src/libs/utils/deviceshell.cpp b/src/libs/utils/deviceshell.cpp index 5f12c8ab829..830425c39e5 100644 --- a/src/libs/utils/deviceshell.cpp +++ b/src/libs/utils/deviceshell.cpp @@ -88,13 +88,12 @@ RunResult DeviceShell::run(const CommandLine &cmd, const QByteArray &stdInData) qCDebug(deviceShellLog) << "Running fallback:" << fallbackCmd; proc.setCommand(fallbackCmd); proc.setWriteData(stdInData); - proc.runBlocking(); - - return RunResult{ - proc.exitCode(), - proc.rawStdOut(), - proc.rawStdErr() - }; + // Practically unlimited timeout since we are most probably running dd for copying + // data to a device here (=deployment), so a) we have no idea how long that might take + // for large files, and b) the user can cancel this manually. + proc.runBlocking(/*timout=*/1h); + // TODO This misses interesting data like proc.errorMessage() and/or proc.exitMessage() + return RunResult{proc.exitCode(), proc.rawStdOut(), proc.rawStdErr()}; } const RunResult errorResult{-1, {}, {}};