diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index 84c1bdd79..fc629990f 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -781,6 +781,7 @@ void kwsysProcess_Execute(kwsysProcess* cp) /* Connect the child's output pipes to the threads. */ si.dwFlags = STARTF_USESTDHANDLES; + si.hStdInput = GetStdHandle(STD_INPUT_HANDLE); si.hStdOutput = cp->Pipe[CMPE_PIPE_STDOUT].Write; si.hStdError = cp->Pipe[CMPE_PIPE_STDERR].Write;