diff options
author | Martin Pool <mbp@samba.org> | 2002-01-24 04:21:42 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-01-24 04:21:42 +0000 |
commit | 5d2640376e3b5b21f6049161b55baf6f4e2acce8 (patch) | |
tree | fdd5608c9a4d81ea37858b4bb3e1820d7ea6115d | |
parent | d02984bbb773470bd28238db5721765d20dcf4ce (diff) | |
download | rsync-5d2640376e3b5b21f6049161b55baf6f4e2acce8.tar.gz |
Show helper program with -v when opening connection.
Doc.
-rw-r--r-- | socket.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -830,6 +830,13 @@ static int socketpair_tcp(int fd[2]) int sock_exec(const char *prog) { int fd[2]; + + if (verbose > 0) { + rprintf(FINFO, RSYNC_NAME + ": open connection using \"%s\"\n", + prog); + } + if (socketpair_tcp(fd) != 0) { rprintf (FERROR, RSYNC_NAME ": socketpair_tcp failed (%s)\n", @@ -842,10 +849,12 @@ int sock_exec(const char *prog) close(1); dup(fd[1]); dup(fd[1]); - if (verbose > 3) + if (verbose > 3) { + /* Can't use rprintf because we've forked. */ fprintf (stderr, RSYNC_NAME ": execute socket program \"%s\"\n", prog); + } exit (system (prog)); } close (fd[1]); |