summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-03 14:26:32 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-03 14:26:32 (GMT)
commit48ee381e6b6614776bc4008eb985218aca533f56 (patch)
treea3b7192146b184ab5f85b78784c6a77ce8ca614d /Source/kwsys/ProcessUNIX.c
parenta85060439c8f9702dc4a82eaed1d3587d4aa8da0 (diff)
downloadCMake-48ee381e6b6614776bc4008eb985218aca533f56.zip
CMake-48ee381e6b6614776bc4008eb985218aca533f56.tar.gz
CMake-48ee381e6b6614776bc4008eb985218aca533f56.tar.bz2
BUG: Need to initialize to not use native pipes.
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index e4b4219..afd9cd8 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;