From 3a9c4412faa87757136283c30b41d7aaf2ac45c4 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 8 Aug 2007 08:49:11 +0000 Subject: [PATCH] Elminiate a spurious message when sigchild looses a race to popen(2). This fixed #143 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1810 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_child.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index b51294ec..1a966d2f 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -305,6 +305,8 @@ mgt_sigchld(struct ev *e, int what) ev_poker = NULL; r = wait4(-1, &status, WNOHANG, NULL); + if (r == 0) + return (0); if (r != child_pid || r == -1) { fprintf(stderr, "Unknown child died pid=%d status=0x%x\n", r, status); -- 2.39.5