From befbfe61156f63a8dadaf0efaaae4bfbf435c00c Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 18 Feb 2002 19:54:00 +0000 Subject: [PATCH] Fix for rsync server processes hanging around after the client unexpectedly disconnects. (Colin Walters) (Debian bug #128632) --- NEWS | 3 +++ io.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 7e2fa06f..ee002893 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,9 @@ rsync 2.5.3 (not released yet) * Fixed problem on systems such as Sunos4 that do not support realloc on a NULL pointer; error was "out of memory in flist_expand". + * Fix for rsync server processes hanging around after the client + unexpectedly disconnects. (Colin Walters) (Debian bug #128632) + ENHANCEMENTS: * Command to initiate connections is only shown with -vv, rather 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, -- 2.34.1