daemon: add sigterm handler for master

This commit is contained in:
Andrew Dolgov 2013-05-29 15:11:46 +04:00
parent 8ff2a86cf3
commit 642432fc39

View file

@ -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;
}