From 1a9c8d78ece2f31fdb1a8e2be049aa71053061fa Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 4 Oct 2016 17:02:49 +0200 Subject: agent: Streamline the supervised mode code. * agent/gpg-agent.c (get_socket_path): Rename to ... (get_socket_name): this. This is to comply with the GNU coding guide. Use xtrymalloc instead of malloc. Do not build for W32. (map_supervised_sockets): Use strtokenize and set the the socket names here. (main): Adjust for above change. Do not close the socket. Signed-off-by: Werner Koch --- doc/gpg-agent.texi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/gpg-agent.texi b/doc/gpg-agent.texi index 7aacb7b48..cc10a79cb 100644 --- a/doc/gpg-agent.texi +++ b/doc/gpg-agent.texi @@ -164,12 +164,14 @@ shell, gpg-agent terminates within a few seconds. Run in the foreground, sending logs by default to stderr, and listening on provided file descriptors, which must already be bound to listening sockets. This command is useful when running under systemd -or other similar process supervision schemes. +or other similar process supervision schemes. This option is not +supported on Windows. In --supervised mode, different file descriptors can be provided for use as different socket types (e.g. ssh, extra) as long as they are -identified in the environment variable $LISTEN_FDNAMES (see -sd_listen_fds(3) for more information on this convention). +identified in the environment variable @code{LISTEN_FDNAMES} (see +sd_listen_fds(3) on some Linux distributions for more information on +this convention). @end table @mansect options -- cgit v1.2.3