From 66bb2bd60437832284efaaa448d55740b0bdf68c Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 23 Jul 2008 21:10:17 +0000 Subject: [PATCH] Make the manager respect the diag_bitmap for child core creation. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3007 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_child.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index 849db1fa..c33ead49 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -168,7 +168,10 @@ child_poker(const struct vev *e, int what) REPORT(LOG_ERR, "Child (%d) not responding to ping, killing it.", child_pid); - (void)kill(child_pid, SIGKILL); + if (params->diag_bitmap & 0x1000) + (void)kill(child_pid, SIGKILL); + else + (void)kill(child_pid, SIGQUIT); return (0); } -- 2.39.5