r2483 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Feb 15 13:59:59 CET 2008


Author: phk
Date: 2008-02-15 13:59:59 +0100 (Fri, 15 Feb 2008)
New Revision: 2483

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_child.c
Log:
Check VLU_Fd return for good measure.


Modified: trunk/varnish-cache/bin/varnishd/mgt_child.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_child.c	2008-02-15 12:56:01 UTC (rev 2482)
+++ trunk/varnish-cache/bin/varnishd/mgt_child.c	2008-02-15 12:59:59 UTC (rev 2483)
@@ -107,7 +107,10 @@
 		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);
 }
 




More information about the varnish-commit mailing list