Commit aeca74eb authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Quench a pointless sigchild warning


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2157 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent aef96cff
......@@ -304,14 +304,10 @@ mgt_sigchld(const struct ev *e, int what)
}
ev_poker = NULL;
r = wait4(-1, &status, WNOHANG, NULL);
if (r == 0)
r = wait4(child_pid, &status, WNOHANG, NULL);
if (r == 0 || (r == -1 && errno == ECHILD))
return (0);
if (r != child_pid || r == -1) {
fprintf(stderr, "Unknown child died pid=%d status=0x%x\n",
r, status);
return (0);
}
assert(r == child_pid);
fprintf(stderr, "Cache child died pid=%d status=0x%x\n", r, status);
child_pid = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment