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
rpm is fussy about changelog formats
[rsync/rsync.git]
/
main.c
diff --git
a/main.c
b/main.c
index
0a57af6
..
5530e7c
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-242,11
+242,15
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
if ((pid=do_fork()) == 0) {
if ((pid=do_fork()) == 0) {
+ close(recv_pipe[0]);
+ close(f_out);
recv_files(f_in,flist,local_name,recv_pipe[1]);
if (am_daemon) report(-1);
exit_cleanup(0);
}
recv_files(f_in,flist,local_name,recv_pipe[1]);
if (am_daemon) report(-1);
exit_cleanup(0);
}
+ close(recv_pipe[1]);
+ close(f_in);
generate_files(f_out,flist,local_name,recv_pipe[0]);
waitpid(pid, &status, 0);
generate_files(f_out,flist,local_name,recv_pipe[0]);
waitpid(pid, &status, 0);
@@
-501,6
+505,11
@@
int main(int argc,char *argv[])
return daemon_main();
}
return daemon_main();
}
+ if (argc < 1) {
+ usage(FERROR);
+ exit(1);
+ }
+
if (dry_run)
verbose = MAX(verbose,1);
if (dry_run)
verbose = MAX(verbose,1);