public function processWaitStatus($status)
    {
        if ($this->isExited()) {
            throw new \LogicException('Cannot set status on an exited fork');
        }

        $this->status = $status;

        if ($this->isExited()) {
            $this->receive();

            $this->isSuccessful() ? $this->resolve() : $this->reject();

            if ($this->debug && (!$this->isSuccessful() || $this->getError())) {
                throw new ForkException($this->name, $this->pid, $this->getError());
            }
        }
    }
public function processWaitStatus($status)
    {
        if ($this->isExited()) {
            throw new \LogicException('Cannot set status on an exited fork');
        }

        $this->status = $status;

        if ($this->isExited()) {
            $this->receive();

            $this->isSuccessful() ? $this->resolve() : $this->reject();

            if ($this->debug && (!$this->isSuccessful() || $this->getError())) {
                throw new ForkException($this->name, $this->pid, $this->getError());
            }
        }
    }
public function processWaitStatus ( $ status ) { if ( $ this -> isExited ( ) ) { throw new \ LogicException ( 'Cannot set status on an exited fork' ) ; } $ this -> status = $ status ; if ( $ this -> isExited ( ) ) { $ this -> receive ( ) ; $ this -> isSuccessful ( ) ? $ this -> resolve ( ) : $ this -> reject ( ) ; if ( $ this -> debug && ( ! $ this -> isSuccessful ( ) || $ this -> getError ( ) ) ) { throw new ForkException ( $ this -> name , $ this -> pid , $ this -> getError ( ) ) ; } } }
Processes a status value retrieved while waiting for this fork to exit.
Processes a status value retrieved while waiting for this fork to exit .