aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-01-31 23:58:01 +0000
committerNIIBE Yutaka <[email protected]>2017-01-31 23:58:01 +0000
commit8ddc9268f6aedef0e178b174b89245c33d8189dd (patch)
tree3c8d6624f74edcbde55d8d6cd8bdc82b8dd1e22d /scd/scdaemon.h
parentgpgscm: Tune the hash tables. (diff)
downloadgnupg-8ddc9268f6aedef0e178b174b89245c33d8189dd.tar.gz
gnupg-8ddc9268f6aedef0e178b174b89245c33d8189dd.zip
scd: Fix regression tracking the connection count.
* scd/scdaemon.c (get_active_connection_count): New. (start_connection_thread): Bump ACTIVE_CONNECTIONS up and down. * scd/command.c (cmd_getinfo): Add subcommand "connections". -- Apply gpg-agent change to scdaemon. See the commit in 2016-08-06: 40d16029ed8b334c371fa7f24ac762d47302826e Then, add kicking the loop, so that main loop can notice the change of the connection. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to '')
-rw-r--r--scd/scdaemon.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/scd/scdaemon.h b/scd/scdaemon.h
index 37590b65e..4797f3df0 100644
--- a/scd/scdaemon.h
+++ b/scd/scdaemon.h
@@ -125,6 +125,7 @@ void send_status_info (ctrl_t ctrl, const char *keyword, ...)
void send_status_direct (ctrl_t ctrl, const char *keyword, const char *args);
void send_client_notifications (app_t app, int removal);
void scd_kick_the_loop (void);
+int get_active_connection_count (void);
/*-- app.c --*/
int scd_update_reader_status_file (void);