conf: New option --status-fd.
authorWerner Koch <wk@gnupg.org>
Mon, 18 Dec 2017 16:46:05 +0000 (17:46 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 18 Dec 2017 16:46:05 +0000 (17:46 +0100)
commit482e000b8a7e336f342a7fac3b7379257e944b6e
treef96adab119a57a987f6ec0609d23935e923a220f
parentd74c40cef0a97cd98aa05f13b1541a94eda502a6
conf: New option --status-fd.

* tools/gpgconf.c (oStatusFD): New const.
(opts): New option --status-fd.
(statusfp): New var.
(set_status_fd): New.
(gpgconf_write_status): New.
(gpgconf_failure): New.
(main): Set status fd and replace exit by gpgconf_failure.
* tools/gpgconf-comp.c: Repalce exit by gpgconf_failure.
(gc_process_gpgconf_conf): Print a few warning status messages.

Signed-off-by: Werner Koch <wk@gnupg.org>
doc/tools.texi
tools/applygnupgdefaults
tools/gpgconf-comp.c
tools/gpgconf.c
tools/gpgconf.h