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