From d2c117dbe5e21b46da5824f6d4f5cfa6099ac711 Mon Sep 17 00:00:00 2001 From: Konstantin Pereyaslov Date: Wed, 23 Sep 2015 02:57:22 +0300 Subject: [PATCH] Clean up processes before waiting --- src/Command/ParallelCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Command/ParallelCommand.php b/src/Command/ParallelCommand.php index e75bd81..07e9b92 100644 --- a/src/Command/ParallelCommand.php +++ b/src/Command/ParallelCommand.php @@ -143,6 +143,7 @@ private function doExecute(InputInterface $input, /** * @var Processes $processes */ + $processes->cleanUP(); //it is not getting called with -p1 after the last process otherwise $processes->wait(function() use ($progressBar, $queue, $processes) { $progressBar->renderBody($queue, $processes); });