]> err.no Git - varnish/commitdiff
Elminiate a spurious message when sigchild looses a race to popen(2).
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 8 Aug 2007 08:49:11 +0000 (08:49 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 8 Aug 2007 08:49:11 +0000 (08:49 +0000)
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

index b51294ec3ee7bc147969dc41a94fb1ab1a766779..1a966d2f1a1692831508291efab19536c7543758 100644 (file)
@@ -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);