Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
416cef3
)
Handle simultaneous arrival of multiple connections.
author
Matt McCutchen
<matt@mattmccutchen.net>
Tue, 13 Jan 2009 17:42:54 +0000
(09:42 -0800)
committer
Wayne Davison
<wayned@samba.org>
Tue, 13 Jan 2009 17:42:54 +0000
(09:42 -0800)
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
a3fc9ae
..
5df3a50
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-578,7
+578,7
@@
void start_accept_loop(int port, int (*fn)(int, int))
fds = deffds;
#endif
- if (select(maxfd + 1, &fds, NULL, NULL, NULL)
!=
1)
+ if (select(maxfd + 1, &fds, NULL, NULL, NULL)
<
1)
continue;
for (i = 0, fd = -1; sp[i] >= 0; i++) {