summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-11-15 12:49:09 -0800
committerWayne Davison <wayned@samba.org>2009-11-15 12:54:55 -0800
commitae598f3847bd83b81effb6cc38719e790ed4c1cf (patch)
tree6f302f69f2546f642aa2146803291dc95015e868 /cleanup.c
parentd85d029b923a747fdf9fbf39154f8424129f7023 (diff)
downloadrsync-ae598f3847bd83b81effb6cc38719e790ed4c1cf.tar.gz
Don't complain about a socket EOF unless it affects a read.
Make sure a write error drains any messages in the input buffer.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cleanup.c b/cleanup.c
index 5d0b92f8..ae185d47 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -214,7 +214,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
#include "case_N.h"
if (exit_code && exit_code != RERR_STREAMIO && exit_code != RERR_SIGNAL1
- && (protocol_version >= 31 || am_server || (!am_sender && !am_generator))) {
+ && (protocol_version >= 31 || (!am_sender && !am_generator))) {
if (line > 0)
send_msg_int(MSG_ERROR_EXIT, exit_code);
noop_io_until_death();