From: Wayne Davison Date: Sun, 26 May 2013 23:10:57 +0000 (-0700) Subject: Forward a MSG_ERROR_EXIT value to generator too. X-Git-Tag: v3.1.0pre1~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b464543648c08538389a4dfeb0b6b60049bd084;p=thirdparty%2Frsync.git Forward a MSG_ERROR_EXIT value to generator too. Fixes bug 9882. --- diff --git a/io.c b/io.c index 771fc0fc..2c69b82d 100644 --- a/io.c +++ b/io.c @@ -1613,7 +1613,7 @@ static void read_a_msg(void) io_flush(FULL_FLUSH); } } else if (protocol_version >= 31) { - if (am_generator) { + if (am_generator || am_receiver) { if (DEBUG_GTE(EXIT, 3)) { rprintf(FINFO, "[%s] sending MSG_ERROR_EXIT with exit_code %d\n", who_am_i(), val);