X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/58c5c245555dee2e49fb8a1c21563e6e084177a2..9eeb3b9c88d62bac0fed650fdbc310d5958cc541:/main.c diff --git a/main.c b/main.c index db37e0f6..0c355362 100644 --- a/main.c +++ b/main.c @@ -480,7 +480,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) close(f_out); /* we can't let two processes write to the socket at one time */ - io_multiplexing_close(); + close_multiplexing_out(); /* set place to send errors */ set_msg_fd_out(error_pipe[1]); @@ -499,6 +499,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) } am_generator = 1; + close_multiplexing_in(); if (write_batch) stop_write_batch(); @@ -1086,6 +1087,8 @@ int main(int argc,char *argv[]) batch_name); exit_cleanup(RERR_FILEIO); } + if (read_batch) + read_stream_flags(batch_fd); } if (am_daemon && !am_server)