aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-06-21 12:17:05 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-06-21 10:58:35 +0000
commit29420ab4698ad45de994cf367b94f23ddc874200 (patch)
treeeae1c84d9544d3ebccdf4488dbc906b2d96a0191
parent3cc49bc31cffaac1fe70f18bdf25ade312fe4ea9 (diff)
setup-toolchains: Fix another possible QProcess timeout
This amends a838fd2328. Change-Id: I6ef5b0f87190a95025e3c949162cd8b0e4c4f64c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r--src/app/qbs-setup-toolchains/probe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/qbs-setup-toolchains/probe.cpp b/src/app/qbs-setup-toolchains/probe.cpp
index 11dee9ad6..4ca146853 100644
--- a/src/app/qbs-setup-toolchains/probe.cpp
+++ b/src/app/qbs-setup-toolchains/probe.cpp
@@ -92,7 +92,7 @@ static QString qsystem(const QString &exe, const QStringList &args = QStringList
throw qbs::ErrorInfo(Tr::tr("Failed to start compiler '%1': %2")
.arg(exe, p.errorString()));
}
- if (!p.waitForFinished() || p.exitCode() != 0)
+ if (!p.waitForFinished(-1) || p.exitCode() != 0)
throw qbs::ErrorInfo(Tr::tr("Failed to run compiler '%1': %2").arg(exe, p.errorString()));
return QString::fromLocal8Bit(p.readAll());
}