From: phk Date: Sun, 20 Aug 2006 14:53:26 +0000 (+0000) Subject: pid -1 is not our child X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31563475378cc0e31cbe6a2de789622444afb21f;p=varnish pid -1 is not our child git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@849 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index 2857f258..564f05df 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -217,7 +217,7 @@ mgt_sigchld(struct ev *e, int what) ev_poker = NULL; r = wait4(-1, &status, WNOHANG, NULL); - if (r != child_pid) { + if (r != child_pid || r == -1) { fprintf(stderr, "Unknown child died pid=%d status=0x%x\n", r, status); return (0);