PHPDaemon\Thread\Master::sighup PHP Method

sighup() protected method

Handler for the SIGHUP (reload config) signal in master 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)) {
            Daemon::loadConfig(Daemon::$config->configfile->value);
        }
        $this->signalToChildren(SIGHUP);
    }