From ce571e64b6c4ab2947c05a21ebc254729933ea0c Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 19 Jun 2010 10:49:43 -0700 Subject: [PATCH] Close the socket fds in the "post-xfer exec" process. --- clientserver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clientserver.c b/clientserver.c index 878254f3..469371f9 100644 --- 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; -- 2.34.1