PHPDaemon\Thread\Worker::sighup PHP Method

sighup() protected method

Handler of the SIGHUP (reload config) signal in worker process.
protected sighup ( ) : void
return void
    protected function sighup()
    {
        if (Daemon::$config->logsignals->value) {
            $this->log('caught SIGHUP (reload config).');
        }
        if (isset(Daemon::$config->configfile->value)) {
            Daemon::loadConfig(Daemon::$config->configfile->value);
        }
        $this->update = true;
    }