summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt McCutchen <matt@mattmccutchen.net>2009-01-13 09:42:54 -0800
committerWayne Davison <wayned@samba.org>2009-01-17 13:46:11 -0800
commit1fb6163c51185f4582ed94b35ea0537563083de9 (patch)
tree8651b2c14c42c2f6d609af948f40d433754f0e3f
parent7f51d0e84930558c4117cd3070dcca80c9bdd54f (diff)
downloadrsync-1fb6163c51185f4582ed94b35ea0537563083de9.tar.gz
rsync-1fb6163c51185f4582ed94b35ea0537563083de9.tar.bz2
rsync-1fb6163c51185f4582ed94b35ea0537563083de9.zip
Handle simultaneous arrival of multiple connections.
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index 97f9e735..3e70af2c 100644
--- 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++) {