summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-08-29 13:18:13 +0200
committerWerner Koch <wk@gnupg.org>2023-08-29 13:18:13 +0200
commita430f2254999383d48d3891a79623a4b33e7ce2d (patch)
treebb5112359a5e1f2d607b9bba24c1fa5331925508 /dirmngr
parentagent: Add agent_kick_the_loop function. (diff)
downloadgnupg2-a430f2254999383d48d3891a79623a4b33e7ce2d.tar.xz
gnupg2-a430f2254999383d48d3891a79623a4b33e7ce2d.zip
common: Prepare for more flags in start_new_service.
* common/asshelp.h (ASSHELP_FLAG_AUTOSTART): New. * common/asshelp.c (start_new_service): Rename arg autostart to flags and adjust checks. (start_new_gpg_agent): Likewise. Change all callers. (start_new_keyboxd): Likewise. Change all callers. (start_new_dirmngr): Likewise. Change all callers. -- It is easier to have a generic flags arg instead of adding more and more dedicated args. verbose and debug are kept as they are because they are not boolean.
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/dirmngr-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dirmngr/dirmngr-client.c b/dirmngr/dirmngr-client.c
index 3912bf47b..f1059c939 100644
--- a/dirmngr/dirmngr-client.c
+++ b/dirmngr/dirmngr-client.c
@@ -308,7 +308,7 @@ main (int argc, char **argv )
opt.dirmngr_program
? opt.dirmngr_program
: gnupg_module_name (GNUPG_MODULE_NAME_DIRMNGR),
- ! cmd_ping,
+ cmd_ping? 0 : ASSHELP_FLAG_AUTOSTART,
opt.verbose,
0,
NULL, NULL);