From 15922835fd449ab02d67c157ad3ad72541803d0c Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 5 Jun 2008 09:12:51 +0000 Subject: [PATCH] Get the sign right on FIONBIO ioctl. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2647 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/tcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/tcp.c b/varnish-cache/bin/varnishd/tcp.c index 9cedd8c3..c2e53408 100644 --- a/varnish-cache/bin/varnishd/tcp.c +++ b/varnish-cache/bin/varnishd/tcp.c @@ -127,7 +127,7 @@ TCP_blocking(int sock) { int i; - i = 0; + i = 1; AZ(ioctl(sock, FIONBIO, &i)); } @@ -136,7 +136,7 @@ TCP_nonblocking(int sock) { int i; - i = 1; + i = 0; AZ(ioctl(sock, FIONBIO, &i)); } -- 2.39.5