summaryrefslogtreecommitdiff
path: root/update_daemon2.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-05-29 15:11:46 +0400
committerAndrew Dolgov <[email protected]>2013-05-29 15:11:46 +0400
commit642432fc39956e92b599f204d64e0b365f36edf2 (patch)
tree400da963742ceec1ddfd56dd425a72d23826bb28 /update_daemon2.php
parent8ff2a86cf33ed573602a4c6abf8ed8e4ee7c45f9 (diff)
daemon: add sigterm handler for master
Diffstat (limited to 'update_daemon2.php')
-rwxr-xr-xupdate_daemon2.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/update_daemon2.php b/update_daemon2.php
index d5b6a45e3..9d948a64d 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;
}