From: Art Cancro Date: Wed, 21 Jul 2010 13:57:01 +0000 (+0000) Subject: * Fix 100 percent cpu loop when ipv6 is enabled X-Git-Tag: v8.01~1023 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=7e549b71fbf2c8185d644ae021dd1c3467f14f18 * Fix 100 percent cpu loop when ipv6 is enabled --- diff --git a/webcit/tcp_sockets.c b/webcit/tcp_sockets.c index 71d89a949..689ad00df 100644 --- a/webcit/tcp_sockets.c +++ b/webcit/tcp_sockets.c @@ -540,13 +540,6 @@ int ig_tcp_server(char *ip_addr, int port_number, int queue_len) i = 1; setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(i)); - #ifndef __APPLE__ - fcntl(s, F_SETFL, O_NONBLOCK); /* maide: this statement is incorrect - there should be a preceding F_GETFL - and a bitwise OR with the previous - fd flags */ - #endif - if (bind(s, (struct sockaddr *) &sin, sizeof(sin)) < 0) { lprintf(1, "Can't bind: %s\n", strerror(errno)); return (-WC_EXIT_BIND);