]> git.wh0rd.org - tt-rss.git/blobdiff - update_daemon2.php
daemon: add sigterm handler for master
[tt-rss.git] / update_daemon2.php
index d5b6a45e36b0cf35fa088f875840382077d2544e..9d948a64d3c5cdea2e19cea5e1fcfa8d9f04c5ae 100755 (executable)
                                        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;
                                        }