]> git.stg.codes - stg.git/commitdiff
Merge remote-tracking branch 'origin/ticket26' into stg-2.409
authorMaxim Mamontov <faust.madf@gmail.com>
Thu, 14 Apr 2016 17:37:49 +0000 (20:37 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Thu, 14 Apr 2016 17:37:49 +0000 (20:37 +0300)
projects/stargazer/main.cpp

index 93aaefd5fe9f070bc05788409cc9e137c5546cea..26bd9727e808be08e77920cf4efc361c80795110 100644 (file)
@@ -266,6 +266,11 @@ for (size_t i = 0; i < settings.GetExecutersNum(); i++)
 
 PIDFile pidFile(settings.GetPIDFileName());
 
+struct sigaction sa;
+memset(&sa, 0, sizeof(sa));
+sa.sa_handler = SIG_DFL;
+sigaction(SIGHUP, &sa, NULL); // Apparently FreeBSD ignores SIGHUP by default when launched from rc.d at bot time.
+
 sigset_t signalSet;
 sigfillset(&signalSet);
 pthread_sigmask(SIG_BLOCK, &signalSet, NULL);