PHPDaemon/Thread/IPC.php 1 location
|
@@ 293-303 (lines=11) @@
|
290 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
291 |
|
* @return void |
292 |
|
*/ |
293 |
|
public function sighup() |
294 |
|
{ |
295 |
|
if (Daemon::$config->logsignals->value) { |
296 |
|
$this->log('caught SIGHUP (reload config).'); |
297 |
|
} |
298 |
|
|
299 |
|
if (isset(Daemon::$config->configfile->value)) { |
300 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
301 |
|
} |
302 |
|
|
303 |
|
$this->update = true; |
304 |
|
} |
305 |
|
|
306 |
|
/** |
PHPDaemon/Thread/Master.php 1 location
|
@@ 425-435 (lines=11) @@
|
422 |
|
* Handler for the SIGHUP (reload config) signal in master process |
423 |
|
* @return void |
424 |
|
*/ |
425 |
|
protected function sighup() |
426 |
|
{ |
427 |
|
if (Daemon::$config->logsignals->value) { |
428 |
|
$this->log('Caught SIGHUP (reload config).'); |
429 |
|
} |
430 |
|
|
431 |
|
if (isset(Daemon::$config->configfile)) { |
432 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
433 |
|
} |
434 |
|
|
435 |
|
$this->signalToChildren(SIGHUP); |
436 |
|
} |
437 |
|
|
438 |
|
/** |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 675-685 (lines=11) @@
|
672 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
673 |
|
* @return void |
674 |
|
*/ |
675 |
|
protected function sighup() |
676 |
|
{ |
677 |
|
if (Daemon::$config->logsignals->value) { |
678 |
|
$this->log('caught SIGHUP (reload config).'); |
679 |
|
} |
680 |
|
|
681 |
|
if (isset(Daemon::$config->configfile->value)) { |
682 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
683 |
|
} |
684 |
|
|
685 |
|
$this->update = true; |
686 |
|
} |
687 |
|
|
688 |
|
/** |