]> err.no Git - varnish/commitdiff
Check VLU_Fd return for good measure.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 12:59:59 +0000 (12:59 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Feb 2008 12:59:59 +0000 (12:59 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2483 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/mgt_child.c

index 0a0ec9314f0299910e23001f52ebbdfa12118d38..717833b700018c60e3229584944f3f89d4770462 100644 (file)
@@ -107,7 +107,10 @@ child_listener(const struct ev *e, int what)
                ev_listen = NULL;
                return (1);
        }
-       VLU_Fd(child_fds[0], vlu);
+       if (VLU_Fd(child_fds[0], vlu)) {
+               ev_listen = NULL;
+               return (1);
+       }
        return (0);
 }