aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2024-06-05 08:33:55 +0000
committerWerner Koch <[email protected]>2024-06-05 08:33:55 +0000
commit4ee656242aa93af42e74acb706a13f99212a93d6 (patch)
tree62f0c95f46b92112fae72d51c39e37cbff729864
parentspawn: Avoid bumping the error counter. (diff)
downloadlibgpg-error-4ee656242aa93af42e74acb706a13f99212a93d6.tar.gz
libgpg-error-4ee656242aa93af42e74acb706a13f99212a93d6.zip
spawn:w32: Allow for up to 32 inherited handles.
* src/spawn-w32.c (spawn_detached): Increase array size. (_gpgrt_process_spawn): Ditto. -- The former limit of 16 might be a bit too low for some use cases.
-rw-r--r--src/spawn-w32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spawn-w32.c b/src/spawn-w32.c
index c3a79d6..5a1d0d5 100644
--- a/src/spawn-w32.c
+++ b/src/spawn-w32.c
@@ -376,7 +376,7 @@ spawn_detached (const char *pgmname, char *cmdline, gpgrt_spawn_actions_t act)
if (i != 0 || act->inherit_hds)
{
SIZE_T attr_list_size = 0;
- HANDLE hd[16];
+ HANDLE hd[32];
HANDLE *hd_p = act->inherit_hds;
int j = 0;
@@ -710,7 +710,7 @@ _gpgrt_process_spawn (const char *pgmname, const char *argv[],
if (i != 0 || act->inherit_hds)
{
SIZE_T attr_list_size = 0;
- HANDLE hd[16];
+ HANDLE hd[32];
HANDLE *hd_p = act->inherit_hds;
int j = 0;