agent: Adjust cleanup for supervised mode. Fix for W32.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Oct 2016 14:57:55 +0000 (16:57 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Oct 2016 15:11:43 +0000 (17:11 +0200)
commitafcfae7959f39e7d85309b9496e1f1cf9acd5cc2
treee684e9fbf88cdcf2a53b0c18dda504b09dfebfa5
parentdc059af1ff007842e2633e686c87d05daf1d45e3
agent: Adjust cleanup for supervised mode.  Fix for W32.

* agent/gpg-agent.c (opts) [W32]: Remove option --supervised.
(is_supervised): Move from main() to global.
(inhibit_socket_removal): New.
(cleanup): Take care of supervise mode and INHIBIT_SOCKET_REMOVAL.
(check_own_socket_thread): Set INHIBIT_SOCKET_REMOVAL instead of
seting the socket names to empty.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/gpg-agent.c