]> err.no Git - varnish/commitdiff
pid -1 is not our child
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 14:53:26 +0000 (14:53 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sun, 20 Aug 2006 14:53:26 +0000 (14:53 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@849 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_child.c

index 2857f25840db8b433086449db2ae5f7da2bc13fa..564f05df843b7f4e3c8fbb6b52209b543bec74a2 100644 (file)
@@ -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);