diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-10-21 14:17:11 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-10-21 14:17:11 +0000 |
commit | 6f276949bbd23e34e7ef49990b1aa54b2ebbbebb (patch) | |
tree | e855121791a490012f072d3bbe44eeb322ba82ae /sysutils/monit | |
parent | a78f70446da17c50591272186f32a59897d5fb0e (diff) |
Fix slow shutdown.
PR: 201919
Submitted by: maintainer
Sponsored by: Absolight
Notes
Notes:
svn path=/head/; revision=399918
Diffstat (limited to 'sysutils/monit')
-rw-r--r-- | sysutils/monit/files/patch-src_http.c | 11 | ||||
-rw-r--r-- | sysutils/monit/files/patch-src_monit.c | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/monit/files/patch-src_http.c b/sysutils/monit/files/patch-src_http.c new file mode 100644 index 000000000000..4bbe5d4fa766 --- /dev/null +++ b/sysutils/monit/files/patch-src_http.c @@ -0,0 +1,11 @@ +--- src/http.c.orig 2015-06-02 10:09:34 UTC ++++ src/http.c +@@ -137,6 +137,8 @@ void monit_http(Httpd_Action action) { + + + static void *thread_wrapper(void *arg) { ++ sigset_t ns; ++ set_signal_block(&ns, NULL); + Engine_start(); + #ifdef HAVE_OPENSSL + Ssl_threadCleanup(); diff --git a/sysutils/monit/files/patch-src_monit.c b/sysutils/monit/files/patch-src_monit.c new file mode 100644 index 000000000000..bb0c47f5527c --- /dev/null +++ b/sysutils/monit/files/patch-src_monit.c @@ -0,0 +1,11 @@ +--- src/monit.c.orig 2015-06-08 12:24:39 UTC ++++ src/monit.c +@@ -819,6 +819,8 @@ static void version() { + * M/Monit heartbeat thread + */ + static void *heartbeat(void *args) { ++ sigset_t ns; ++ set_signal_block(&ns, NULL); + LogInfo("M/Monit heartbeat started\n"); + LOCK(heartbeatMutex) + { |