From 9e76c95c1d79bbf87d91bcc44b8735756771931b Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 23 Nov 2008 02:37:44 +0000 Subject: [PATCH] Let the child bjam commands inherit stdin, as some commands assume it's available. (fixes #1577) [SVN r49883] --- historic/jam/src/execnt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/historic/jam/src/execnt.c b/historic/jam/src/execnt.c index f5371c883..764204518 100644 --- a/historic/jam/src/execnt.c +++ b/historic/jam/src/execnt.c @@ -403,6 +403,9 @@ void exec_cmd si.hStdError = cmdtab[ slot ].pipe_out[ 1 ]; } + /* Let the child inherit stdin, as some commands assume it's available. */ + si.hStdInput = GetStdHandle(STD_INPUT_HANDLE); + /* Save the operation for exec_wait() to find. */ cmdtab[ slot ].func = func; cmdtab[ slot ].closure = closure;