X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c399d22a197c68c60f7ceaad5237f8a112b24abf..3a69fad0f64978e9bea91b825c9773e4cb4447c0:/io.c diff --git a/io.c b/io.c index 13f4d3d1..ef4735c4 100644 --- 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) { - check_timeout(); if (errno == EBADF) exit_cleanup(RERR_SOCKETIO); + check_timeout(); continue; } @@ -827,9 +827,9 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) &w_fds, NULL, &tv); if (count <= 0) { - check_timeout(); if (count < 0 && errno == EBADF) exit_cleanup(RERR_SOCKETIO); + check_timeout(); continue; }