]> git.tdb.fi Git - builder.git/commitdiff
Don't block in ExternalTask::do_wait unless requested
authorMikko Rasa <tdb@tdb.fi>
Wed, 21 Aug 2019 22:04:12 +0000 (01:04 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 21 Aug 2019 22:04:12 +0000 (01:04 +0300)
source/externaltask.cpp

index f7ab199b417121712ef3d9a408a58565cc6961d8..07ad870e6c35ec398e2885211e31fbfe890f7d28 100644 (file)
@@ -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;