From 2d432afff653239ef73c97fdecfff2df1622c62d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 26 Sep 2002 07:10:56 +0000 Subject: * gpg-agent.c (handle_signal): Flush cache on SIGHUP. * cache.c (agent_flush_cache): New. * gpg-agent.c, agent.h: Add --keep-display and --keep-tty. * query.c (start_pinentry): Implement them. The option passing needs more thoughts. --- agent/query.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'agent/query.c') diff --git a/agent/query.c b/agent/query.c index c461a55ce..ee18a1483 100644 --- a/agent/query.c +++ b/agent/query.c @@ -113,7 +113,7 @@ start_pinentry (void) /* FIXME: We must do this thread specific */ argv[0] = pgmname; - if (opt.display) + if (opt.display && !opt.keep_display) { argv[1] = "--display"; argv[2] = opt.display; @@ -150,7 +150,7 @@ start_pinentry (void) NULL, NULL, NULL, NULL, NULL, NULL); if (rc) return unlock_pinentry (map_assuan_err (rc)); - if (opt.ttyname) + if (opt.ttyname && !opt.keep_tty) { char *optstr; if (asprintf (&optstr, "OPTION ttyname=%s", opt.ttyname) < 0 ) @@ -161,7 +161,7 @@ start_pinentry (void) if (rc) return unlock_pinentry (map_assuan_err (rc)); } - if (opt.ttytype) + if (opt.ttytype && !opt.keep_tty) { char *optstr; if (asprintf (&optstr, "OPTION ttytype=%s", opt.ttytype) < 0 ) -- cgit v1.2.3