From c2741514bc72abc22240adbbc7d0a2e7264f7815 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 8 Sep 2011 17:56:47 +0200 Subject: [PATCH] win: fix spawn() bug --- src/win/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/process.c b/src/win/process.c index 31d40b52..64a35690 100644 --- a/src/win/process.c +++ b/src/win/process.c @@ -1007,7 +1007,7 @@ done: /* it's way with them. But at least make them noninheritable. */ int i; for (i = 0; i < COUNTOF(process->child_stdio); i++) { - SetHandleInformation(child_stdio[1], HANDLE_FLAG_INHERIT, 0); + SetHandleInformation(child_stdio[i], HANDLE_FLAG_INHERIT, 0); } }