From 1163e4ee8cc07d54303637d91c59ac2714fdf916 Mon Sep 17 00:00:00 2001 From: des Date: Thu, 6 Jul 2006 08:43:02 +0000 Subject: [PATCH] Portability: Linux does not have SO_NOSIGPIPE. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@338 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_acceptor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/varnish-cache/bin/varnishd/cache_acceptor.c b/varnish-cache/bin/varnishd/cache_acceptor.c index 6402aafb..1da0e2f8 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor.c +++ b/varnish-cache/bin/varnishd/cache_acceptor.c @@ -168,8 +168,10 @@ accept_f(int fd, short event, void *arg) 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); -- 2.39.5