X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/900748fca13ed9b4305b6ae323e1cc3b27ac00c6..befbfe61156f63a8dadaf0efaaae4bfbf435c00c:/io.c diff --git a/io.c b/io.c index 3c0b7902..eeb3a564 100644 --- a/io.c +++ b/io.c @@ -454,6 +454,9 @@ static void writefd_unbuffered(int fd,char *buf,size_t len) } if (ret <= 0) { + /* Don't try to write errors back + * across the stream */ + io_multiplexing_close(); rprintf(FERROR, "error writing %d unbuffered bytes" " - exiting: %s\n", len,