diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-27 03:56:56 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2014-11-27 03:56:56 +0300 |
commit | 0c80a9be897972650d3e176943c0c63fcddcd6ca (patch) | |
tree | 7115929216c7969ff167cb5deb17777bb02aa7f2 /core/CliMulti.php | |
parent | 9ea42bb907d9ddbb1ca7e0868e34b3a46de1973e (diff) | |
parent | 7bab10fc9dd46037e39e5cbb3dcca2b420528051 (diff) |
Merge branch 'di-config' into tmp-path
Conflicts:
tests/PHPUnit/Integration/LogTest.php
Diffstat (limited to 'core/CliMulti.php')
-rw-r--r-- | core/CliMulti.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/CliMulti.php b/core/CliMulti.php index aee8d7e35d..8a1bffd773 100644 --- a/core/CliMulti.php +++ b/core/CliMulti.php @@ -152,6 +152,14 @@ class CliMulti { return false; } + $pid = $process->getPid(); + foreach ($this->outputs as $output) { + if ($output->getOutputId() === $pid && $output->isAbnormal()) { + $process->finishProcess(); + return true; + } + } + if ($process->hasFinished()) { // prevent from checking this process over and over again unset($this->processes[$index]); |