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) {