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