diff options
author | Werner Koch <[email protected]> | 2009-03-03 09:02:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-03-03 09:02:58 +0000 |
commit | c20b3db108b090b7b34f48a6085a6824fc4db715 (patch) | |
tree | cbedc554619505de2750785252791c51a563bce2 /agent/call-scd.c | |
parent | Add missing option strings. (diff) | |
download | gnupg-c20b3db108b090b7b34f48a6085a6824fc4db715.tar.gz gnupg-c20b3db108b090b7b34f48a6085a6824fc4db715.zip |
Add --reload command to gpgconf.
Fix a problem in exechelp.c
Get ready for a release.
Diffstat (limited to 'agent/call-scd.c')
-rw-r--r-- | agent/call-scd.c | 10 |
1 files changed, 10 insertions, 0 deletions
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) |