aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-08-06 08:14:17 +0000
committerWerner Koch <[email protected]>2016-08-06 08:15:47 +0000
commit40d16029ed8b334c371fa7f24ac762d47302826e (patch)
treebe45cdb7a072cbd704c9e0fe35970a0590b1ceb7 /agent/command-ssh.c
parentagent: Clean up SSH support. (diff)
downloadgnupg-40d16029ed8b334c371fa7f24ac762d47302826e.tar.gz
gnupg-40d16029ed8b334c371fa7f24ac762d47302826e.zip
agent: Fix long standing regression tracking the connection count.
* agent/gpg-agent.c (get_agent_active_connection_count): New. (do_start_connection_thread, start_connection_thread_ssh): Bump ACTIVE_CONNECTIONS up and down. * agent/command.c (cmd_getinfo): Add subcommand "connections". -- The variable ACTIVE_CONNECTIONS is used to shutdown gpg-agent in a friendly way. Before we switched to nPth a Pth provided count of threads was used for this. During the migration to nPth ACTIVE_CONNECTIONS was introduced and checked but never set. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions