From: Wayne Davison Date: Fri, 10 Jan 2003 08:32:09 +0000 (+0000) Subject: Reset the io_error_fd right before the generator kills off the receiver X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/b5ae4aba3814502dc61c3d0042be8e952722b69f Reset the io_error_fd right before the generator kills off the receiver (because the death of the receiver will close the fd and cause the generator to fail in any subsequent IO). --- diff --git a/main.c b/main.c index 3c057199..b571b3a8 100644 --- a/main.c +++ b/main.c @@ -461,6 +461,7 @@ static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name) } io_flush(); + io_set_error_fd(-1); kill(pid, SIGUSR2); wait_process(pid, &status); return status;