Home GnuPG
Diffusion GnuPG 3cf9bb4d73cf

gpg-connect-agent: Catch signals so that SIGPIPE is ignored.

Description

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 <wk@gnupg.org>

Details

Provenance
wernerAuthored on Sep 10 2020, 10:49 AM
Parents
rG5a87011c46b5: dirmngr: Fix the pool keyserver case for a single host in the pool.
Branches
Unknown
Tags
Unknown