r795 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Aug 11 09:33:59 CEST 2006


Author: phk
Date: 2006-08-11 09:33:59 +0200 (Fri, 11 Aug 2006)
New Revision: 795

Modified:
   trunk/varnish-cache/bin/varnishd/varnishd.c
Log:
Bail if we don't get a listening socket.


Modified: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c	2006-08-11 07:12:24 UTC (rev 794)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c	2006-08-11 07:33:59 UTC (rev 795)
@@ -397,7 +397,8 @@
 	 * but do not answer.  That, on the other hand, would eliminate the
 	 * possibility of doing a "no-glitch" restart of the child process.
 	 */
-	open_tcp(portnumber);
+	if (open_tcp(portnumber))
+		exit (2);
 
 	VSL_MgtInit(SHMLOG_FILENAME, 8*1024*1024);
 




More information about the varnish-commit mailing list