summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorMatt McCutchen <matt@mattmccutchen.net>2009-01-13 09:42:54 -0800
committerWayne Davison <wayned@samba.org>2009-01-13 09:42:54 -0800
commitbb499bd7a04b826181468b77e05ca4a3a89feea8 (patch)
tree605f5170095c31db54c65f71a9b911dd6fdfdb81 /socket.c
parent416cef36e98fc2ce2c75bd76b8e97d892a3d88b8 (diff)
downloadrsync-bb499bd7a04b826181468b77e05ca4a3a89feea8.tar.gz
rsync-bb499bd7a04b826181468b77e05ca4a3a89feea8.tar.bz2
rsync-bb499bd7a04b826181468b77e05ca4a3a89feea8.zip
Handle simultaneous arrival of multiple connections.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket.c b/socket.c
index a3fc9aeb..5df3a500 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++) {