protected function shutdown($signo = false)
    {
        $this->shutdown = true;
        $this->waitAll(true);
        Daemon::$shm_wstate->delete();
        file_put_contents(Daemon::$config->pidfile->value, '');
        posix_kill(getmypid(), SIGKILL);
        exit(0);
    }
protected function shutdown($signo = false)
    {
        $this->shutdown = true;
        $this->waitAll(true);
        Daemon::$shm_wstate->delete();
        file_put_contents(Daemon::$config->pidfile->value, '');
        posix_kill(getmypid(), SIGKILL);
        exit(0);
    }
protected function shutdown ( $ signo = false ) { $ this -> shutdown = true ; $ this -> waitAll ( true ) ; Daemon :: $ shm_wstate -> delete ( ) ; file_put_contents ( Daemon :: $ config -> pidfile -> value , '' ) ; posix_kill ( getmypid ( ) , SIGKILL ) ; exit ( 0 ) ; }
Called when master is going to shutdown
@param integer System singal's number
@return void
Called when master is going to shutdown