aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-11-29 15:53:54 +0000
committerWerner Koch <[email protected]>2016-11-29 15:54:36 +0000
commit81d6e98cdf4caa3aa92398fc3b8bed397b40f58d (patch)
tree725a49b1edf7154c9dace0ae8a64b5da9f17e77e
parentgpg: Make --decrypt with output '-&nnnn' work. (diff)
downloadgnupg-81d6e98cdf4caa3aa92398fc3b8bed397b40f58d.tar.gz
gnupg-81d6e98cdf4caa3aa92398fc3b8bed397b40f58d.zip
agent,w32: Initialize nPth in server mode.
* agent/gpg-agent.c (main) [W32]: Call initialize_modules in server mode. -- Fixes-commit: 9a707a223a3d45ccf245dee7989ca144e4e6bb49 Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to '')
-rw-r--r--agent/gpg-agent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 175866d90..5060c07a1 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -1532,10 +1532,15 @@ main (int argc, char **argv )
parent_pid = getpid ();
fflush (NULL);
+
#ifdef HAVE_W32_SYSTEM
+
(void)csh_style;
(void)nodetach;
+ initialize_modules ();
+
#else /*!HAVE_W32_SYSTEM*/
+
pid = fork ();
if (pid == (pid_t)-1)
{