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/Master.php 1 location
|
@@ 424-434 (lines=11) @@
|
421 |
|
* Handler for the SIGHUP (reload config) signal in master process |
422 |
|
* @return void |
423 |
|
*/ |
424 |
|
protected function sighup() |
425 |
|
{ |
426 |
|
if (Daemon::$config->logsignals->value) { |
427 |
|
$this->log('Caught SIGHUP (reload config).'); |
428 |
|
} |
429 |
|
|
430 |
|
if (isset(Daemon::$config->configfile)) { |
431 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
432 |
|
} |
433 |
|
|
434 |
|
$this->signalToChildren(SIGHUP); |
435 |
|
} |
436 |
|
|
437 |
|
/** |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 676-686 (lines=11) @@
|
673 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
674 |
|
* @return void |
675 |
|
*/ |
676 |
|
protected function sighup() |
677 |
|
{ |
678 |
|
if (Daemon::$config->logsignals->value) { |
679 |
|
$this->log('caught SIGHUP (reload config).'); |
680 |
|
} |
681 |
|
|
682 |
|
if (isset(Daemon::$config->configfile->value)) { |
683 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
684 |
|
} |
685 |
|
|
686 |
|
$this->update = true; |
687 |
|
} |
688 |
|
|
689 |
|
/** |