protected function shutdown($signo = false) { $this->shutdown = true; $this->waitAll(true); Daemon::$shm_wstate->delete(); file_put_contents(Daemon::$config->pidfile->value, ''); exit(0); }