PHPDaemon\Thread\Master::shutdown PHP Method

shutdown() protected method

Called when master is going to shutdown
protected shutdown ( $signo = false ) : void
return void
    protected function shutdown($signo = false)
    {
        $this->shutdown = true;
        $this->waitAll(true);
        Daemon::$shm_wstate->delete();
        file_put_contents(Daemon::$config->pidfile->value, '');
        exit(0);
    }