From: phk Date: Fri, 15 Feb 2008 12:59:59 +0000 (+0000) Subject: Check VLU_Fd return for good measure. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c238bab712ebbde4b2e9500cc90b3e705152b2;p=varnish Check VLU_Fd return for good measure. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2483 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/mgt_child.c b/varnish-cache/bin/varnishd/mgt_child.c index 0a0ec931..717833b7 100644 --- a/varnish-cache/bin/varnishd/mgt_child.c +++ b/varnish-cache/bin/varnishd/mgt_child.c @@ -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); }