* Change to main server loop. All threads block on accept() instead of using a mutex...
[citadel.git] / webcit / tcp_sockets.c
index 1fef4173775eda9565c384cf86abb1331f2f31de..b4197e5d925d7dfc5e9d70ea563e6e3e97224936 100644 (file)
@@ -653,13 +653,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);