From: Wayne Davison Date: Sat, 19 Jun 2010 17:49:43 +0000 (-0700) Subject: Close the socket fds in the "post-xfer exec" process. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/ce571e64b6c4ab2947c05a21ebc254729933ea0c Close the socket fds in the "post-xfer exec" process. --- 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;