X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/87ee248169774a0589e0ca3a87f088ea5ab400ca..d0f821ad3d2627b842cf18770f91266a808b83b8:/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,