mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
agent,dirmngr: Shutdown fix for supervised mode.
* agent/gpg-agent.c (handle_connections): Break if supervised. * dirmngr/dirmngr.c (is_supervised): New. (handle_connections): Break if supervised. -- For supervised agent/dirmngr, 'systemctl stop' behaves just like 'gpgconf --kill', ignoring existing connections. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
09a96c9e1b
commit
f15a643a2d
2 changed files with 7 additions and 2 deletions
|
@ -3115,7 +3115,7 @@ handle_connections (gnupg_fd_t listen_fd,
|
|||
/* Shutdown test. */
|
||||
if (shutdown_pending)
|
||||
{
|
||||
if (active_connections == 0)
|
||||
if (active_connections == 0 || is_supervised)
|
||||
break; /* ready */
|
||||
|
||||
/* Do not accept new connections but keep on running the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue