From e4c238bab712ebbde4b2e9500cc90b3e705152b2 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 15 Feb 2008 12:59:59 +0000 Subject: [PATCH] Check VLU_Fd return for good measure. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2483 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/mgt_child.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } -- 2.39.5