Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restored the code in the IPV6_V6ONLY section that checks the
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
13f4d3d
..
ef4735c
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-419,9
+419,9
@@
static int read_timeout(int fd, char *buf, size_t len)
NULL, &tv);
if (count <= 0) {
NULL, &tv);
if (count <= 0) {
- check_timeout();
if (errno == EBADF)
exit_cleanup(RERR_SOCKETIO);
if (errno == EBADF)
exit_cleanup(RERR_SOCKETIO);
+ check_timeout();
continue;
}
continue;
}
@@
-827,9
+827,9
@@
static void writefd_unbuffered(int fd,char *buf,size_t len)
&w_fds, NULL, &tv);
if (count <= 0) {
&w_fds, NULL, &tv);
if (count <= 0) {
- check_timeout();
if (count < 0 && errno == EBADF)
exit_cleanup(RERR_SOCKETIO);
if (count < 0 && errno == EBADF)
exit_cleanup(RERR_SOCKETIO);
+ check_timeout();
continue;
}
continue;
}