public function sighandler($signo)
    {
        if (!isset(self::$signals[$signo])) {
            $this->log('caught unknown signal #' . $signo);
            return;
        }
        if (method_exists($this, $m = strtolower(self::$signals[$signo]))) {
            $this->$m();
        } elseif (method_exists($this, 'sigunknown')) {
            $this->sigunknown($signo);
        }
    }
public function sighandler($signo)
    {
        if (!isset(self::$signals[$signo])) {
            $this->log('caught unknown signal #' . $signo);
            return;
        }
        if (method_exists($this, $m = strtolower(self::$signals[$signo]))) {
            $this->$m();
        } elseif (method_exists($this, 'sigunknown')) {
            $this->sigunknown($signo);
        }
    }
public function sighandler ( $ signo ) { if ( ! isset ( self :: $ signals [ $ signo ] ) ) { $ this -> log ( 'caught unknown signal #' . $ signo ) ; return ; } if ( method_exists ( $ this , $ m = strtolower ( self :: $ signals [ $ signo ] ) ) ) { $ this -> $ m ( ) ; } elseif ( method_exists ( $ this , 'sigunknown' ) ) { $ this -> sigunknown ( $ signo ) ; } }
Called when the signal is caught
@param integer Signal's number
@return void
Called when the signal is caught