PHPDaemon/Thread/Master.php 1 location
|
@@ 429-439 (lines=11) @@
|
426 |
|
* Handler for the SIGHUP (reload config) signal in master process |
427 |
|
* @return void |
428 |
|
*/ |
429 |
|
protected function sighup() |
430 |
|
{ |
431 |
|
if (Daemon::$config->logsignals->value) { |
432 |
|
$this->log('Caught SIGHUP (reload config).'); |
433 |
|
} |
434 |
|
|
435 |
|
if (isset(Daemon::$config->configfile)) { |
436 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
437 |
|
} |
438 |
|
|
439 |
|
$this->signalToChildren(SIGHUP); |
440 |
|
} |
441 |
|
|
442 |
|
/** |
PHPDaemon/Thread/IPC.php 1 location
|
@@ 290-300 (lines=11) @@
|
287 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
288 |
|
* @return void |
289 |
|
*/ |
290 |
|
public function sighup() |
291 |
|
{ |
292 |
|
if (Daemon::$config->logsignals->value) { |
293 |
|
$this->log('caught SIGHUP (reload config).'); |
294 |
|
} |
295 |
|
|
296 |
|
if (isset(Daemon::$config->configfile->value)) { |
297 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
298 |
|
} |
299 |
|
|
300 |
|
$this->update = true; |
301 |
|
} |
302 |
|
|
303 |
|
/** |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 665-675 (lines=11) @@
|
662 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
663 |
|
* @return void |
664 |
|
*/ |
665 |
|
protected function sighup() |
666 |
|
{ |
667 |
|
if (Daemon::$config->logsignals->value) { |
668 |
|
$this->log('caught SIGHUP (reload config).'); |
669 |
|
} |
670 |
|
|
671 |
|
if (isset(Daemon::$config->configfile->value)) { |
672 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
673 |
|
} |
674 |
|
|
675 |
|
$this->update = true; |
676 |
|
} |
677 |
|
|
678 |
|
/** |