From c20b3db108b090b7b34f48a6085a6824fc4db715 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 3 Mar 2009 09:02:58 +0000 Subject: Add --reload command to gpgconf. Fix a problem in exechelp.c Get ready for a release. --- agent/call-scd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'agent/call-scd.c') diff --git a/agent/call-scd.c b/agent/call-scd.c index c162ad14c..f45e94097 100644 --- a/agent/call-scd.c +++ b/agent/call-scd.c @@ -409,6 +409,16 @@ start_scd (ctrl_t ctrl) } +/* Check whether the SCdaemon is active. This is a fast check without + any locking and might give a wrong result if another thread is about + to start the daemon or the daemon is about to be stopped.. */ +int +agent_scd_check_running (void) +{ + return !!primary_scd_ctx; +} + + /* Check whether the Scdaemon is still alive and clean it up if not. */ void agent_scd_check_aliveness (void) -- cgit v1.2.3