summaryrefslogtreecommitdiff
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-12-19 10:14:49 -0800
committerWayne Davison <wayned@samba.org>2009-12-19 10:14:49 -0800
commit82b2a31a46d7c94f951b96f61c9935198f0f53f1 (patch)
tree24003c0b722283a442fb5dcac70c1c358fc9cc01 /cleanup.c
parenteeea1bbd72cf881a1be1826e68ba97e483f774c5 (diff)
downloadrsync-82b2a31a46d7c94f951b96f61c9935198f0f53f1.tar.gz
Added an am_receiver variable.
Diffstat (limited to 'cleanup.c')
-rw-r--r--cleanup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cleanup.c b/cleanup.c
index 5981bac8..76f57b5d 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -24,8 +24,7 @@
extern int am_server;
extern int am_daemon;
-extern int am_sender;
-extern int am_generator;
+extern int am_receiver;
extern int io_error;
extern int keep_partial;
extern int got_xfer_error;
@@ -171,7 +170,7 @@ NORETURN void _exit_cleanup(int code, const char *file, int line)
/* FALLTHROUGH */
#include "case_N.h"
- if (!code || am_server || (!am_sender && !am_generator))
+ if (!code || am_server || am_receiver)
io_flush(FULL_FLUSH);
/* FALLTHROUGH */
@@ -216,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_sender && !am_generator))) {
+ && !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",