diff options
author | Werner Koch <[email protected]> | 2020-09-10 08:49:54 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2020-09-10 08:50:40 +0000 |
commit | 3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5 (patch) | |
tree | 7bbe28455ff3aacbb7f4b69fb61b5e144152c982 /tools/gpg-connect-agent.c | |
parent | dirmngr: Fix the pool keyserver case for a single host in the pool. (diff) | |
download | gnupg-3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5.tar.gz gnupg-3cf9bb4d73cfe78d3d48734e7c8a65d9a98112a5.zip |
gpg-connect-agent: Catch signals so that SIGPIPE is ignored.
* dirmngr/server.c (cmd_killdirmngr): Return 0.
* tools/gpg-connect-agent.c (main): Catch signals.
--
And we also print nicer diagnostics. The reason we need this is that
for example "gpgconf --kill dirmngr" uses gpg-connect-agent to send a
command to dirmngr. This may results in a SIGPIPE which in turn leads
to an annoying error message from gpgconf.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'tools/gpg-connect-agent.c')
-rw-r--r-- | tools/gpg-connect-agent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gpg-connect-agent.c b/tools/gpg-connect-agent.c index ac0bc89dc..6ec08c538 100644 --- a/tools/gpg-connect-agent.c +++ b/tools/gpg-connect-agent.c @@ -1204,6 +1204,7 @@ main (int argc, char **argv) assuan_set_gpg_err_source (0); + gnupg_init_signals (0, NULL); opt.autostart = 1; opt.connect_flags = 1; |