r927 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Wed Sep 6 20:47:06 CEST 2006


Author: phk
Date: 2006-09-06 20:47:06 +0200 (Wed, 06 Sep 2006)
New Revision: 927

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Don't bother with SO_NOSIGPIPE, it doesn't always work and we
have ignored the signal anyway.


Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-09-06 18:46:26 UTC (rev 926)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-09-06 18:47:06 UTC (rev 927)
@@ -70,10 +70,6 @@
 	sp->fd = i;
 	sp->id = i;
 
-#ifdef SO_NOSIGPIPE /* XXX Linux */
-	i = 1;
-	AZ(setsockopt(sp->fd, SOL_SOCKET, SO_NOSIGPIPE, &i, sizeof i));
-#endif
 #ifdef SO_LINGER /* XXX Linux*/
 	linger.l_onoff = 0;
 	linger.l_linger = 0;




More information about the varnish-commit mailing list