X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/2b7e9042b631fef022410b3236d762d097c172fd..9a52223bce23c54dabff27c8e02d4814c7a498dd:/io.c diff --git a/io.c b/io.c index dbe21005..563dacfc 100644 --- a/io.c +++ b/io.c @@ -256,6 +256,9 @@ static int writefd(int fd,char *buf,int len) exit_cleanup(1); } + got_select = 0; + + if (ret == -1) { read_check(buffer_f_in); @@ -269,8 +272,6 @@ static int writefd(int fd,char *buf,int len) fd_count = buffer_f_in+1; } - got_select = 0; - tv.tv_sec = BLOCKING_TIMEOUT; tv.tv_usec = 0; count = select(fd_count,buffer_f_in == -1? NULL: &r_fds,