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->isSigchildEnabled()) {
            $this->processInformation = $this->fallbackStatus + $this->processInformation;
        }

        if (!$running) {
            $this->close();
        }
    }
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->isSigchildEnabled()) {
            $this->processInformation = $this->fallbackStatus + $this->processInformation;
        }

        if (!$running) {
            $this->close();
        }
    }
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 -> isSigchildEnabled ( ) ) { $ this -> processInformation = $ this -> fallbackStatus + $ this -> processInformation ; } if ( ! $ running ) { $ this -> close ( ) ; } }
Updates the status of the process, reads pipes.

@param bool $blocking Whether to use a blocking read call
Updates the status of the process reads pipes .