diff options
author | Werner Koch <[email protected]> | 2009-03-25 14:58:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-03-25 14:58:31 +0000 |
commit | 6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b (patch) | |
tree | 79944244885afa0481ba8a54f4fe7c62754ccf5a /agent/gpg-agent.c | |
parent | Preparing a snapshot. (diff) | |
download | gnupg-6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b.tar.gz gnupg-6dc17a2b4dfcb90e19219cd6f48b921a977d5d4b.zip |
log file fixes.
Diffstat (limited to '')
-rw-r--r-- | agent/gpg-agent.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c index e5372c4f9..b5f9a47e2 100644 --- a/agent/gpg-agent.c +++ b/agent/gpg-agent.c @@ -467,6 +467,7 @@ parse_rereadable_options (ARGPARSE_ARGS *pargs, int reread) || strcmp (current_logfile, pargs->r.ret_str)) { log_set_file (pargs->r.ret_str); + assuan_set_assuan_log_stream (log_get_stream ()); xfree (current_logfile); current_logfile = xtrystrdup (pargs->r.ret_str); } @@ -980,9 +981,10 @@ main (int argc, char **argv ) else if (pid) { /* We are the parent */ char *infostr, *infostr_ssh_sock, *infostr_ssh_pid; - + + /* Close the socket FD. */ close (fd); - + /* Note that we used a standard fork so that Pth runs in both the parent and the child. The pth_fork would terminate Pth in the child but that is not the way we @@ -1184,6 +1186,7 @@ main (int argc, char **argv ) } #endif /*!HAVE_W32_SYSTEM*/ + log_info ("%s %s started\n", strusage(11), strusage(13) ); handle_connections (fd, opt.ssh_support ? fd_ssh : GNUPG_INVALID_FD); assuan_sock_close (fd); } |