added SIGPIPE catch
[rsync/rsync.git] / rsync.c
diff --git a/rsync.c b/rsync.c
index b865353..9f1d80a 100644 (file)
--- a/rsync.c
+++ b/rsync.c
@@ -611,6 +611,8 @@ off_t send_files(struct file_list *flist,int f_out,int f_in)
   if (verbose > 2)
     fprintf(stderr,"send_files starting\n");
 
+  setup_nonblocking(f_in,f_out);
+
   while (1) 
     {
       i = read_int(f_in);