]> git.wh0rd.org Git - tt-rss.git/commitdiff
daemon: add sigterm handler for master
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 29 May 2013 11:11:46 +0000 (15:11 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 29 May 2013 11:11:46 +0000 (15:11 +0400)
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;
                                        }