daemon: add sigterm handler for master
This commit is contained in:
parent
8ff2a86cf3
commit
642432fc39
1 changed files with 1 additions and 0 deletions
|
@ -203,6 +203,7 @@
|
|||
if (!$master_handlers_installed) {
|
||||
_debug("[MASTER] installing shutdown handlers");
|
||||
pcntl_signal(SIGINT, 'sigint_handler');
|
||||
pcntl_signal(SIGTERM, 'sigint_handler');
|
||||
register_shutdown_function('shutdown', posix_getpid());
|
||||
$master_handlers_installed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue