From ba017c03c2b4e87dbbbfc6d771d6077fc033e814 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 4 Jun 2024 14:05:31 +0200 Subject: [PATCH] RemoteLinux: Lower the timeout when retrieving the environment Otherwise, a non-responsive device will freeze Qt Creator for ten seconds (with no announcement, because the env call does not go through the device shell). Change-Id: I92ab847dd441494770dbe29cde1c726dd31f32fb Reviewed-by: Marcus Tillmanns --- src/plugins/remotelinux/linuxdevice.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 97cb7f9ae72..c971c8caa2e 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -366,7 +366,8 @@ Environment LinuxDevicePrivate::getEnvironment() Process getEnvProc; getEnvProc.setCommand(CommandLine{q->filePath("env")}); - getEnvProc.runBlocking(); + using namespace std::chrono; + getEnvProc.runBlocking(5s); const QString remoteOutput = getEnvProc.cleanedStdOut(); m_environmentCache = Environment(remoteOutput.split('\n', Qt::SkipEmptyParts), q->osType());