From: Mikko Rasa Date: Wed, 21 Aug 2019 22:04:12 +0000 (+0300) Subject: Don't block in ExternalTask::do_wait unless requested X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=2f55d54651622c5c3d9db2b67e9efeb141ff808d;p=builder.git Don't block in ExternalTask::do_wait unless requested --- diff --git a/source/externaltask.cpp b/source/externaltask.cpp index f7ab199..07ad870 100644 --- a/source/externaltask.cpp +++ b/source/externaltask.cpp @@ -130,7 +130,7 @@ Task::Status ExternalTask::do_wait(bool block) { while(process) { - if(process->wait(!capture_pipe)) + if(process->wait(block && !capture_pipe)) { exit_code = process->get_exit_code(); delete process;