summaryrefslogtreecommitdiff
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-02-04 18:14:15 -0800
committerWayne Davison <wayned@samba.org>2009-02-04 18:23:59 -0800
commit46cd1ef6bc79f5779766d5829681cb2b0a66aa80 (patch)
tree174645fbd8856bda8a99f8154de435d25d8268a8 /flist.c
parent6e8061371776c0716b9eab43c04c48a338cf726a (diff)
downloadrsync-46cd1ef6bc79f5779766d5829681cb2b0a66aa80.tar.gz
Ensure that the sender turns off any msg_fd_in use earlier.
This avoids a problem where an extra message from the sender could give the generator time to start sending data that will not be understood by the sender's use of read_msg_fd().
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flist.c b/flist.c
index 1fa2cac8..0fc7851a 100644
--- a/flist.c
+++ b/flist.c
@@ -2262,6 +2262,8 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
if (numeric_ids <= 0 && !inc_recurse)
send_id_list(f);
+ set_msg_fd_in(-1);
+
/* send the io_error flag */
if (protocol_version < 30)
write_int(f, ignore_errors ? 0 : io_error);