This commit is contained in:
irungentoo 2014-06-20 10:07:47 -04:00
commit 760333b907
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -818,9 +818,10 @@ static sock_t new_listening_TCP_socket(int family, uint16_t port)
return ~0;
}
int ok = 1;
#ifndef TCP_SERVER_USE_EPOLL
ok = set_socket_nonblock(sock);
int ok = set_socket_nonblock(sock);
#else
int ok = 1;
#endif
if (ok && family == AF_INET6) {