]> err.no Git - varnish/commitdiff
Only complain if accept_filters fail
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Jul 2006 09:08:49 +0000 (09:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 6 Jul 2006 09:08:49 +0000 (09:08 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@344 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/tcp.c

index e6e0e5c74b50ccf28a8f891f099c579e9e8c7177..98b1ed05e9278f52941c5157188e94e1e05f8fb0 100644 (file)
@@ -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