From b5ae4aba3814502dc61c3d0042be8e952722b69f Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 10 Jan 2003 08:32:09 +0000 Subject: [PATCH] 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). --- main.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1