aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <[email protected]>2016-08-12 05:37:59 +0000
committerWerner Koch <[email protected]>2016-10-04 15:11:43 +0000
commit9f92b62a51d2d60f038fdbe01602865c5933fa95 (patch)
tree4a8a5af5f13367c49dbe75c59bfe9697a5932e62 /g10/parse-packet.c
parentbuild,w32: Unconditionally build tests. (diff)
downloadgnupg-9f92b62a51d2d60f038fdbe01602865c5933fa95.tar.gz
gnupg-9f92b62a51d2d60f038fdbe01602865c5933fa95.zip
agent: Implement --supervised command (for systemd, etc).
* agent/gpg-agent.c (get_socket_path): New function for POSIX systems to return the path for a provided unix-domain socket. (map_supervised_sockets): New function to inspect $LISTEN_FDS and $LISTEN_FDNAMES and map them to the specific functionality offered by the agent. (main): Add --supervised command. When used, listen on already-open file descriptors instead of opening our own. * doc/gpg-agent.texi: Document --supervised option. -- "gpg-agent --supervised" is a way to invoke gpg-agent such that a system supervisor like systemd can provide socket-activated startup, log management, and scheduled shutdown. When running in this mode, gpg-agent: * Does not open its own listening socket; rather, it expects to be given a listening socket on incoming file descriptors. * Does not detach from the invoking process, staying in the foreground instead. Unless otherwise specified, logs are sent to stderr. Signed-off-by: Daniel Kahn Gillmor <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions