Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
close the other half of the pipe in do_recv(). This fixes the problem
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
f557e55
..
188cf41
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-242,11
+242,13
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
if ((pid=do_fork()) == 0) {
+ close(recv_pipe[0]);
recv_files(f_in,flist,local_name,recv_pipe[1]);
if (am_daemon) report(-1);
exit_cleanup(0);
}
+ close(recv_pipe[1]);
generate_files(f_out,flist,local_name,recv_pipe[0]);
waitpid(pid, &status, 0);