Home GnuPG
Diffusion GnuPG 4a04277ad112

wks: New option --status-fd for gpg-wks-client.
4a04277ad112Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

wks: New option --status-fd for gpg-wks-client.

* tools/wks-util.c: Include status.h.
(statusfp): New global var.
(wks_set_status_fd): New func.
(wks_write_status): New func.
* tools/gpg-wks-client.c: Include status.h.
(oStatusFD): New constant.
(opts): New option --status-fd.
(parse_arguments): Handle that option.
(main): Return STATUS_SUCCESS or STATUS_FAILURE.

This option is useful in case gpg-wks-client is spawed using a double
fork approach which does not allow to return the exit code.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Dec 8 2016, 5:55 PM
Parents
rGe7429b1ced0c: gpgscm: Better error reporting.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG4a04277ad112: wks: New option --status-fd for gpg-wks-client. (authored by Werner Koch <wk@gnupg.org>).Dec 8 2016, 5:56 PM