From: phk Date: Wed, 23 Jul 2008 21:10:17 +0000 (+0000) Subject: Make the manager respect the diag_bitmap for child core creation. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66bb2bd60437832284efaaa448d55740b0bdf68c;p=varnish 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 --- 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); }