Graze\Supervisor\ProcessSupervisor::ping PHP Method

ping() public method

public ping ( ) : boolean
return boolean
    public function ping()
    {
        if ($this->process->isTerminated()) {
            $this->stderr = $this->process->getErrorOutput();
            $this->stdout = $this->process->getOutput();
            if ($this->process->isSuccessful()) {
                return (bool) $this->handler->handlePass($this->retries, $this);
            }
            return (bool) $this->handler->handleFail($this->retries, $this, new TerminatedProcessException($this->process));
        }
        return true;
    }