core,w32: Fix popping up of console windows due to gpgconf.
authorWerner Koch <wk@gnupg.org>
Mon, 11 Dec 2017 12:54:22 +0000 (13:54 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 11 Dec 2017 12:54:40 +0000 (13:54 +0100)
* src/gpgme-w32spawn.c (my_spawn): Create w/o DETACHED_PROCESS.
--

The spawn helper is actually called with DETACHED_PROCESS and should
not need to do a DETACHED_PROCESS of its own.  Interestingly this
patch removes the popups.

See Andre's report
GnuPG-bug-id: 3515

Signed-off-by: Werner Koch <wk@gnupg.org>
src/gpgme-w32spawn.c

index 003b9b0..d86c850 100644 (file)
@@ -205,7 +205,6 @@ my_spawn (char **argv, struct spawn_fd_item_s *fd_list, unsigned int flags)
     }
 
   cr_flags |= CREATE_SUSPENDED;
-  cr_flags |= DETACHED_PROCESS;
   if (!CreateProcessA (argv[0],
                       arg_string,
                       &sec_attr,     /* process security attributes */