From 2aedbc423a829290df2b3d44c14fb4c05421741d Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 6 Jul 2006 09:08:49 +0000 Subject: [PATCH] Only complain if accept_filters fail git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@344 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/tcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/tcp.c b/varnish-cache/bin/varnishd/tcp.c index e6e0e5c7..98b1ed05 100644 --- a/varnish-cache/bin/varnishd/tcp.c +++ b/varnish-cache/bin/varnishd/tcp.c @@ -24,8 +24,9 @@ accept_filter(int fd) errno = 0; i = setsockopt(fd, SOL_SOCKET, SO_ACCEPTFILTER, &afa, sizeof(afa)); - printf("Acceptfilter(%d, httpready): %d %s\n", - fd, i, strerror(errno)); + if (i) + printf("Acceptfilter(%d, httpready): %d %s\n", + fd, i, strerror(errno)); } static void -- 2.39.5