r338 - trunk/varnish-cache/bin/varnishd

des at projects.linpro.no des at projects.linpro.no
Thu Jul 6 10:43:02 CEST 2006


Author: des
Date: 2006-07-06 10:43:02 +0200 (Thu, 06 Jul 2006)
New Revision: 338

Modified:
   trunk/varnish-cache/bin/varnishd/cache_acceptor.c
Log:
Portability: Linux does not have SO_NOSIGPIPE.

Modified: trunk/varnish-cache/bin/varnishd/cache_acceptor.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-07-06 08:41:26 UTC (rev 337)
+++ trunk/varnish-cache/bin/varnishd/cache_acceptor.c	2006-07-06 08:43:02 UTC (rev 338)
@@ -168,8 +168,10 @@
 		free(sp);
 		return;
 	}
+#ifdef SO_NOSIGPIPE /* XXX Linux */
 	i = 1;
 	AZ(setsockopt(sp->fd, SOL_SOCKET, SO_NOSIGPIPE, &i, sizeof i));
+#endif
 	i = getnameinfo(addr, l,
 	    sp->addr, VCA_ADDRBUFSIZE,
 	    port, sizeof port, NI_NUMERICHOST | NI_NUMERICSERV);




More information about the varnish-commit mailing list