Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9541770
)
Close the socket fds in the "post-xfer exec" process.
author
Wayne Davison
<wayned@samba.org>
Sat, 19 Jun 2010 17:49:43 +0000
(10:49 -0700)
committer
Wayne Davison
<wayned@samba.org>
Sat, 19 Jun 2010 17:50:28 +0000
(10:50 -0700)
clientserver.c
patch
|
blob
|
blame
|
history
diff --git
a/clientserver.c
b/clientserver.c
index
878254f
..
469371f
100644
(file)
--- a/
clientserver.c
+++ b/
clientserver.c
@@
-686,6
+686,9
@@
static int rsync_module(int f_in, int f_out, int i, const char *addr, const char
return -1;
}
if (pid) {
+ close(f_in);
+ if (f_out != f_in)
+ close(f_out);
set_env_num("RSYNC_PID", (long)pid);
if (wait_process(pid, &status, 0) < 0)
status = -1;