scd: Fix regression tracking the connection count.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 31 Jan 2017 23:58:01 +0000 (08:58 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 31 Jan 2017 23:58:01 +0000 (08:58 +0900)
commit8ddc9268f6aedef0e178b174b89245c33d8189dd
tree3c8d6624f74edcbde55d8d6cd8bdc82b8dd1e22d
parent2e78aa6ff770849415f8eb71ca70c8886e9564c8
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 <gniibe@fsij.org>
scd/command.c
scd/scdaemon.c
scd/scdaemon.h