* Fix 100 percent cpu loop when ipv6 is enabled
authorArt Cancro <ajc@citadel.org>
Wed, 21 Jul 2010 13:57:01 +0000 (13:57 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 21 Jul 2010 13:57:01 +0000 (13:57 +0000)
webcit/tcp_sockets.c

index 71d89a949a9f801ff6086b360f0444e5750811fa..689ad00df76e4b7aa56016b46b73ae93484d0ded 100644 (file)
@@ -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);