diff options
author | Martin Pool <mbp@samba.org> | 2002-01-24 04:19:41 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-24 04:19:41 +0000 |
commit | d02984bbb773470bd28238db5721765d20dcf4ce (patch) | |
tree | c88acc23e30a1e6d372abc1ec07caeea42cd72af | |
parent | 0f9555207a9549a0340d8de49abe9a9438be7018 (diff) | |
download | rsync-d02984bbb773470bd28238db5721765d20dcf4ce.tar.gz |
Doc.
-rw-r--r-- | socket.c | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -817,13 +817,16 @@ static int socketpair_tcp(int fd[2]) } -/******************************************************************* -run a program on a local tcp socket, this is used to launch smbd -when regression testing -the return value is a socket which is attached to a subprocess -running "prog". stdin and stdout are attached. stderr is left -attached to the original stderr - ******************************************************************/ + +/** + * Run a program on a local tcp socket, so that we can talk to it's + * stdin and stdout. This is used to launch ssh and similar + * connection helper programs for rsync. + * + * @return a socket which is attached to a subprocess running + * "prog". stdin and stdout are attached. stderr is left attached to + * the original stderr + **/ int sock_exec(const char *prog) { int fd[2]; |