From 2f55d54651622c5c3d9db2b67e9efeb141ff808d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 22 Aug 2019 01:04:12 +0300 Subject: [PATCH] Don't block in ExternalTask::do_wait unless requested --- source/externaltask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.45.2