mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-02 16:43:03 +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)
|
gnupg_spawn_helper (struct spawn_cb_arg *sca)
|
||||||
{
|
{
|
||||||
int *user_except = sca->arg;
|
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;
|
sca->except_fds = user_except;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gpg_err_code_t
|
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
|
gpg_err_code_t
|
||||||
gnupg_process_spawn (const char *pgmname, const char *argv[],
|
gnupg_process_spawn (const char *pgmname, const char *argv[],
|
||||||
unsigned int flags,
|
unsigned int flags,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user