Skip to content

Commit

Permalink
Don't make external processes time out.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 11, 2020
1 parent f5347c8 commit da09927
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/misc/cliutils.cpp.inl
Expand Up @@ -301,7 +301,7 @@ int exec(const QString &pProgram, const QStringList &pArgs, QString &pOutput)
QProcess process;

process.start(pProgram, pArgs);
process.waitForFinished();
process.waitForFinished(-1);

pOutput = process.readAll().trimmed();

Expand Down
2 changes: 1 addition & 1 deletion src/tests/src/testsutils.cpp
Expand Up @@ -173,7 +173,7 @@ int runCli(const QStringList &pArguments, QStringList &pOutput)

QString output;

while (process.waitForReadyRead()) {
while (process.waitForReadyRead(-1)) {
output += process.readAll();
}

Expand Down

0 comments on commit da09927

Please sign in to comment.