summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/test1.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-06-18 21:06:21 (GMT)
committerBrad King <brad.king@kitware.com>2003-06-18 21:06:21 (GMT)
commit7e80f2f8746ab1a98879d37b1ece42a7f3ba6b01 (patch)
tree41141b9412b4a1583c73441f9f3caf688b9cecf8 /Source/kwsys/test1.cxx
parent5394a7534010660b0ad15ddb44c58ff293bdf41e (diff)
downloadCMake-7e80f2f8746ab1a98879d37b1ece42a7f3ba6b01.zip
CMake-7e80f2f8746ab1a98879d37b1ece42a7f3ba6b01.tar.gz
CMake-7e80f2f8746ab1a98879d37b1ece42a7f3ba6b01.tar.bz2
ENH: Added documentation to interface. Finished process exit code interpretation implementation prototype.
Diffstat (limited to 'Source/kwsys/test1.cxx')
-rw-r--r--Source/kwsys/test1.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/kwsys/test1.cxx b/Source/kwsys/test1.cxx
index 0957d3a..7dd61a4 100644
--- a/Source/kwsys/test1.cxx
+++ b/Source/kwsys/test1.cxx
@@ -11,7 +11,8 @@ int main()
kwsysProcess_Execute(kp);
char* data = 0;
int length = 0;
- while(kwsysProcess_WaitForData(kp, kwsysProcess_STDOUT | kwsysProcess_STDERR,
+ while(kwsysProcess_WaitForData(kp, (kwsysProcess_Pipe_STDOUT |
+ kwsysProcess_Pipe_STDERR),
&data, &length, 0))
{
kwsys_std::cout.write(data, length);