]> err.no Git - varnish/commitdiff
Make the manager respect the diag_bitmap for child core creation.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 21:10:17 +0000 (21:10 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 23 Jul 2008 21:10:17 +0000 (21:10 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3007 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_child.c

index 849db1fa3003f88cf757710b6db6d02ec891b0de..c33ead490413fc8b1418c1cfb8fe397db9703cd6 100644 (file)
@@ -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);
 }