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/command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'agent/command.c') 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; -- cgit v1.2.3