1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

Put gnupg_spawn_helper function to W32, too.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2023-01-27 14:29:57 +09:00
parent 8e2207ecb9
commit 56446bd923
No known key found for this signature in database
GPG Key ID: 640114AF89DE6054
2 changed files with 11 additions and 7 deletions

View File

@ -1114,14 +1114,7 @@ void
gnupg_spawn_helper (struct spawn_cb_arg *sca)
{
int *user_except = sca->arg;
#ifdef HAVE_W32_SYSTEM
if (user_except[0] == -1)
sca->ask_inherit = 0;
else
sca->ask_inherit = 1;
#else
sca->except_fds = user_except;
#endif
}
gpg_err_code_t

View File

@ -1202,6 +1202,17 @@ spawn_detached (gnupg_process_t process,
}
void
gnupg_spawn_helper (struct spawn_cb_arg *sca)
{
int *user_except = sca->arg;
if (user_except[0] == -1)
sca->ask_inherit = 0;
else
sca->ask_inherit = 1;
}
gpg_err_code_t
gnupg_process_spawn (const char *pgmname, const char *argv[],
unsigned int flags,