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/command.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/command.c')
-rw-r--r-- | agent/command.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c index b2903f6c9..bf2db1c76 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1396,7 +1396,7 @@ cmd_reloadagent (assuan_context_t ctx, char *line) pid - Return the process id of the server. socket_name - Return the name of the socket. ssh_socket_name - Return the name of the ssh socket. - + scd_running - Return OK if the SCdaemon is already running. */ static int cmd_getinfo (assuan_context_t ctx, char *line) @@ -1433,6 +1433,10 @@ cmd_getinfo (assuan_context_t ctx, char *line) else rc = gpg_error (GPG_ERR_NO_DATA); } + else if (!strcmp (line, "scd_running")) + { + rc = agent_scd_check_running ()? 0 : gpg_error (GPG_ERR_GENERAL); + } else rc = set_error (GPG_ERR_ASS_PARAMETER, "unknown value for WHAT"); return rc; |