PHPDaemon/Thread/IPC.php 1 location
|
@@ 298-308 (lines=11) @@
|
| 295 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
| 296 |
|
* @return void |
| 297 |
|
*/ |
| 298 |
|
public function sighup() |
| 299 |
|
{ |
| 300 |
|
if (Daemon::$config->logsignals->value) { |
| 301 |
|
$this->log('caught SIGHUP (reload config).'); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
if (isset(Daemon::$config->configfile->value)) { |
| 305 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
| 306 |
|
} |
| 307 |
|
|
| 308 |
|
$this->update = true; |
| 309 |
|
} |
| 310 |
|
|
| 311 |
|
/** |
PHPDaemon/Thread/Master.php 1 location
|
@@ 431-441 (lines=11) @@
|
| 428 |
|
* Handler for the SIGHUP (reload config) signal in master process |
| 429 |
|
* @return void |
| 430 |
|
*/ |
| 431 |
|
protected function sighup() |
| 432 |
|
{ |
| 433 |
|
if (Daemon::$config->logsignals->value) { |
| 434 |
|
$this->log('Caught SIGHUP (reload config).'); |
| 435 |
|
} |
| 436 |
|
|
| 437 |
|
if (isset(Daemon::$config->configfile)) { |
| 438 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
| 439 |
|
} |
| 440 |
|
|
| 441 |
|
$this->signalToChildren(SIGHUP); |
| 442 |
|
} |
| 443 |
|
|
| 444 |
|
/** |
PHPDaemon/Thread/Worker.php 1 location
|
@@ 711-721 (lines=11) @@
|
| 708 |
|
* Handler of the SIGHUP (reload config) signal in worker process. |
| 709 |
|
* @return void |
| 710 |
|
*/ |
| 711 |
|
protected function sighup() |
| 712 |
|
{ |
| 713 |
|
if (Daemon::$config->logsignals->value) { |
| 714 |
|
$this->log('caught SIGHUP (reload config).'); |
| 715 |
|
} |
| 716 |
|
|
| 717 |
|
if (isset(Daemon::$config->configfile->value)) { |
| 718 |
|
Daemon::loadConfig(Daemon::$config->configfile->value); |
| 719 |
|
} |
| 720 |
|
|
| 721 |
|
$this->update = true; |
| 722 |
|
} |
| 723 |
|
|
| 724 |
|
/** |