BUG: Need to provide stdin to child processes.

This commit is contained in:
Brad King 2003-08-06 09:27:56 -04:00
parent 9e44bcf313
commit 07865fd113
1 changed files with 1 additions and 0 deletions

View File

@ -781,6 +781,7 @@ void kwsysProcess_Execute(kwsysProcess* cp)
/* Connect the child's output pipes to the threads. */ /* Connect the child's output pipes to the threads. */
si.dwFlags = STARTF_USESTDHANDLES; si.dwFlags = STARTF_USESTDHANDLES;
si.hStdInput = GetStdHandle(STD_INPUT_HANDLE);
si.hStdOutput = cp->Pipe[CMPE_PIPE_STDOUT].Write; si.hStdOutput = cp->Pipe[CMPE_PIPE_STDOUT].Write;
si.hStdError = cp->Pipe[CMPE_PIPE_STDERR].Write; si.hStdError = cp->Pipe[CMPE_PIPE_STDERR].Write;