mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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 <wk@gnupg.org>
This commit is contained in:
parent
afcfae7959
commit
1a9c8d78ec
2 changed files with 216 additions and 200 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue