Symfony\Component\Process\Process::updateStatus PHP Method

updateStatus() protected method

Updates the status of the process, reads pipes.
protected updateStatus ( boolean $blocking )
$blocking boolean Whether to use a blocking read call
    protected function updateStatus($blocking)
    {
        if (self::STATUS_STARTED !== $this->status) {
            return;
        }
        $this->processInformation = proc_get_status($this->process);
        $running = $this->processInformation['running'];
        $this->readPipes($running && $blocking, '\\' !== DIRECTORY_SEPARATOR || !$running);
        if ($this->fallbackStatus && $this->enhanceSigchildCompatibility && $this->isSigchildEnabled()) {
            $this->processInformation = $this->fallbackStatus + $this->processInformation;
        }
        if (!$running) {
            $this->close();
        }
    }