mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-26 09:51:29 +00:00
daemon: add sigterm handler for master
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user