diff options
author | Werner Koch <wk@gnupg.org> | 2017-12-18 17:46:05 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-12-18 17:46:05 +0100 |
commit | 482e000b8a7e336f342a7fac3b7379257e944b6e (patch) | |
tree | f96adab119a57a987f6ec0609d23935e923a220f /doc/tools.texi | |
parent | gpgconf: Show --compliance in expert mode. (diff) | |
download | gnupg2-482e000b8a7e336f342a7fac3b7379257e944b6e.tar.xz gnupg2-482e000b8a7e336f342a7fac3b7379257e944b6e.zip |
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>
Diffstat (limited to 'doc/tools.texi')
-rw-r--r-- | doc/tools.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/tools.texi b/doc/tools.texi index 5104beaa5..9301334c7 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -407,6 +407,14 @@ changing. This means that the changes will take effect at run-time, as far as this is possible. Otherwise, they will take effect at the next start of the respective backend programs. + +@item --status-fd @var{n} +@opindex status-fd +Write special status strings to the file descriptor @var{n}. This +program returns the status messages SUCCESS or FAILURE which are +helpful when the caller uses a double fork approach and can't easily +get the return code of the process. + @manpause @end table |