mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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>
This commit is contained in:
parent
5a87011c46
commit
3cf9bb4d73
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue