projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be0e2dc
)
* Fix 100 percent cpu loop when ipv6 is enabled
author
Art Cancro
<ajc@citadel.org>
Wed, 21 Jul 2010 13:57:01 +0000
(13:57 +0000)
committer
Art Cancro
<ajc@citadel.org>
Wed, 21 Jul 2010 13:57:01 +0000
(13:57 +0000)
webcit/tcp_sockets.c
patch
|
blob
|
history
diff --git
a/webcit/tcp_sockets.c
b/webcit/tcp_sockets.c
index 71d89a949a9f801ff6086b360f0444e5750811fa..689ad00df76e4b7aa56016b46b73ae93484d0ded 100644
(file)
--- 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);