From 81d6e98cdf4caa3aa92398fc3b8bed397b40f58d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 29 Nov 2016 16:53:54 +0100 Subject: [PATCH] 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 --- agent/gpg-agent.c | 5 +++++ 1 file changed, 5 insertions(+) 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) {