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:
parent
8e2207ecb9
commit
56446bd923
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user