Commit 344fb127 authored by Andrew Tridgell's avatar Andrew Tridgell

fixed a select bug which caused rsync to use far more cpu time than

necessary on the server
parent e095b568
......@@ -148,7 +148,8 @@ static int readfd(int fd,char *buffer,int N)
tv.tv_sec = io_timeout;
tv.tv_usec = 0;
if (select(fd+1, &fds, NULL, NULL, &tv) != 1) {
if (select(fd+1, &fds, NULL, NULL,
io_timeout?&tv:NULL) != 1) {
check_timeout();
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment