diff options
author | Matt McCutchen <matt@mattmccutchen.net> | 2009-01-13 09:42:54 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-01-17 13:46:11 -0800 |
commit | 1fb6163c51185f4582ed94b35ea0537563083de9 (patch) | |
tree | 8651b2c14c42c2f6d609af948f40d433754f0e3f | |
parent | 7f51d0e84930558c4117cd3070dcca80c9bdd54f (diff) | |
download | rsync-1fb6163c51185f4582ed94b35ea0537563083de9.tar.gz rsync-1fb6163c51185f4582ed94b35ea0537563083de9.tar.bz2 rsync-1fb6163c51185f4582ed94b35ea0537563083de9.zip |
Handle simultaneous arrival of multiple connections.
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |