r2725 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Tue Jun 17 12:14:23 CEST 2008


Author: phk
Date: 2008-06-17 12:14:23 +0200 (Tue, 17 Jun 2008)
New Revision: 2725

Modified:
   trunk/varnish-cache/bin/varnishd/mgt_cli.c
Log:
Don't assert that the close succeeds, we may already have closed the telnet
socket.



Modified: trunk/varnish-cache/bin/varnishd/mgt_cli.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/mgt_cli.c	2008-06-17 10:13:03 UTC (rev 2724)
+++ trunk/varnish-cache/bin/varnishd/mgt_cli.c	2008-06-17 10:14:23 UTC (rev 2725)
@@ -392,7 +392,7 @@
 		if (tn->fd != fd)
 			continue;
 		VTAILQ_REMOVE(&telnets, tn, list);
-		AZ(close(tn->fd));
+		(void)close(tn->fd);
 		free(tn);
 		break;
 	}




More information about the varnish-commit mailing list