Reset the io_error_fd right before the generator kills off the receiver
authorWayne Davison <wayned@samba.org>
Fri, 10 Jan 2003 08:32:09 +0000 (08:32 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 10 Jan 2003 08:32:09 +0000 (08:32 +0000)
(because the death of the receiver will close the fd and cause the
generator to fail in any subsequent IO).

main.c

diff --git a/main.c b/main.c
index 3c05719..b571b3a 100644 (file)
--- 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;