Skip to content
Snippets Groups Projects
Commit 945b7fad authored by Brad King's avatar Brad King
Browse files

BUG: Can't close stdin.

parent 144590d3
No related branches found
No related tags found
No related merge requests found
......@@ -331,8 +331,10 @@ void kwsysProcess_Execute(kwsysProcess* cp)
/* If this is the child process, run the real process. */
if(cp->ForkPID == 0)
{
/* Close stdin. */
close(0);
/* We used to close stdin, but some programs do not like being run
without stdin. Just use whatever stdin the parent program is
using. */
/*close(0);*/
/* Setup the stdout/stderr pipes. */
dup2(cp->PipeWriteEnds[KWSYSPE_PIPE_STDOUT], 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment