From: Andrew Dolgov Date: Wed, 29 May 2013 11:11:46 +0000 (+0400) Subject: daemon: add sigterm handler for master X-Git-Tag: 1.8~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=642432fc39956e92b599f204d64e0b365f36edf2;p=tt-rss.git daemon: add sigterm handler for master --- diff --git a/update_daemon2.php b/update_daemon2.php index d5b6a45e..9d948a64 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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; }