From 48ee381e6b6614776bc4008eb985218aca533f56 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 3 Oct 2006 10:26:32 -0400 Subject: [PATCH] BUG: Need to initialize to not use native pipes. --- Source/kwsys/ProcessUNIX.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index e4b4219ae..afd9cd823 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -242,6 +242,14 @@ kwsysProcess* kwsysProcess_New(void) /* Share stdin with the parent process by default. */ cp->PipeSharedSTDIN = 1; + /* No native pipes by default. */ + cp->PipeNativeSTDIN[0] = -1; + cp->PipeNativeSTDIN[1] = -1; + cp->PipeNativeSTDOUT[0] = -1; + cp->PipeNativeSTDOUT[1] = -1; + cp->PipeNativeSTDERR[0] = -1; + cp->PipeNativeSTDERR[1] = -1; + /* Set initial status. */ cp->State = kwsysProcess_State_Starting;