Browse Source

BUG: Need to provide stdin to child processes.

Brad King 22 years ago
parent
commit
07865fd113
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/kwsys/ProcessWin32.c

+ 1 - 0
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;