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:
e095b56
)
fixed a select bug which caused rsync to use far more cpu time than
author
Andrew Tridgell
<tridge@samba.org>
Fri, 15 May 1998 07:11:29 +0000
(07:11 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Fri, 15 May 1998 07:11:29 +0000
(07:11 +0000)
necessary on the server
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
004f4ce
..
52c4cb1
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-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();
}
}