Command/Tender/ChildProcessContainer.php
public function checkHealth()
    {
        if (!$this->process->isRunning()) {
            if ($this->status == self::STATUS_CLEANINGUP || $this->status == self::STATUS_CLEANEDUP) {
                //okay so we're ready to stop!
                $this->status = self::STATUS_DEAD;
                return true;
            } elseif ($this->status == ChildProcessContainer::STATUS_SLEEPY) {
                //okay so we're ready to stop!
                $this->status = self::STATUS_DEAD;
                return true;
            }
            $this->status = self::STATUS_DEAD;
            return false;
        } else {
            return true;
        }

    }
public function checkHealth()
    {
        if (!$this->process->isRunning()) {
            if ($this->status == self::STATUS_CLEANINGUP || $this->status == self::STATUS_CLEANEDUP) {
                //okay so we're ready to stop!
                $this->status = self::STATUS_DEAD;
                return true;
            } elseif ($this->status == ChildProcessContainer::STATUS_SLEEPY) {
                //okay so we're ready to stop!
                $this->status = self::STATUS_DEAD;
                return true;
            }
            $this->status = self::STATUS_DEAD;
            return false;
        } else {
            return true;
        }

    }
public function checkHealth ( ) { if ( ! $ this -> process -> isRunning ( ) ) { if ( $ this -> status == self :: STATUS_CLEANINGUP || $ this -> status == self :: STATUS_CLEANEDUP ) { //okay so we're ready to stop! $ this -> status = self :: STATUS_DEAD ; return true ; } elseif ( $ this -> status == ChildProcessContainer :: STATUS_SLEEPY ) { //okay so we're ready to stop! $ this -> status = self :: STATUS_DEAD ; return true ; } $ this -> status = self :: STATUS_DEAD ; return false ; } else { return true ; } }
Checks the health of this child and returns true if healthy otherwise marks it for cleanup

@return boolean
Checks the health of this child and returns true if healthy otherwise marks it for cleanup