aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf-comp.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-05-26 12:00:55 +0000
committerWerner Koch <[email protected]>2008-05-26 12:00:55 +0000
commit203ea19408f83296e52ab09d1380f59455cbc8ce (patch)
treebff9fafec151e20ff4ba45fd872ea417a2e7c775 /tools/gpgconf-comp.c
parentFix --output option used when with --export-secret-kety-p12. (diff)
downloadgnupg-203ea19408f83296e52ab09d1380f59455cbc8ce.tar.gz
gnupg-203ea19408f83296e52ab09d1380f59455cbc8ce.zip
Make --runtime option of gpgconf under W32 work.
Diffstat (limited to '')
-rw-r--r--tools/gpgconf-comp.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c
index 5dc32d6eb..579025eac 100644
--- a/tools/gpgconf-comp.c
+++ b/tools/gpgconf-comp.c
@@ -1014,9 +1014,26 @@ gpg_agent_runtime_change (void)
/* Ignore any errors here. */
kill (pid, SIGHUP);
+#else
+ gpg_error_t err;
+ const char *pgmname;
+ const char *argv[2];
+ pid_t pid;
+
+ pgmname = gnupg_module_name (GNUPG_MODULE_NAME_CONNECT_AGENT);
+ argv[0] = "reloadagent";
+ argv[1] = NULL;
+
+ err = gnupg_spawn_process_fd (pgmname, argv, -1, -1, -1, &pid);
+ if (!err)
+ err = gnupg_wait_process (pgmname, pid, NULL);
+ if (err)
+ gc_error (0, 0, "error running `%s%s': %s",
+ pgmname, " reloadagent", gpg_strerror (err));
#endif /*!HAVE_W32_SYSTEM*/
}
+
/* More or less Robust version of dgettext. It has the side effect of
switching the codeset to utf-8 because this is what we want to