diff --git a/src/Symfony/Component/Process/Process.php b/src/Symfony/Component/Process/Process.php index 60f265024c..6df07a1075 100644 --- a/src/Symfony/Component/Process/Process.php +++ b/src/Symfony/Component/Process/Process.php @@ -290,7 +290,7 @@ class Process } } - $this->processInformation = proc_get_status($this->process); + $this->updateStatus(); } /** @@ -308,7 +308,7 @@ class Process */ public function wait($callback = null) { - $this->processInformation = proc_get_status($this->process); + $this->updateStatus(); $callback = $this->buildCallback($callback); while ($this->pipes || (defined('PHP_WINDOWS_VERSION_BUILD') && $this->fileHandles)) { if (defined('PHP_WINDOWS_VERSION_BUILD') && $this->fileHandles) {