summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2010-01-02 09:14:19 -0800
committerWayne Davison <wayned@samba.org>2010-01-02 09:14:19 -0800
commite34f43495c0f0ab0e7b01983238f5d6e8988e30b (patch)
treef5b230e4f04e24a75ebf1cb322f1bc93c8cec8c0 /cleanup.c
parent42562649917058c3aff682741854ac12ffe72d20 (diff)
downloadrsync-e34f43495c0f0ab0e7b01983238f5d6e8988e30b.tar.gz
rsync-e34f43495c0f0ab0e7b01983238f5d6e8988e30b.tar.bz2
rsync-e34f43495c0f0ab0e7b01983238f5d6e8988e30b.zip
Don't try to send MSG_ERROR_EXIT after a timeout.
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 76f57b5d..dc18f72a 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -215,7 +215,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
#include "case_N.h"
if (exit_code && exit_code != RERR_SOCKETIO && exit_code != RERR_STREAMIO && exit_code != RERR_SIGNAL1
- && !shutting_down && (protocol_version >= 31 || am_receiver)) {
+ && exit_code != RERR_TIMEOUT && !shutting_down && (protocol_version >= 31 || am_receiver)) {
if (line > 0) {
if (DEBUG_GTE(EXIT, 3)) {
rprintf(FINFO, "[%s] sending MSG_ERROR_EXIT with exit_code %d\n",