diff options
author | Brad King <brad.king@kitware.com> | 2003-12-05 16:53:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-12-05 16:53:17 (GMT) |
commit | ed853b5d70649465370f161b774cf91735a822b3 (patch) | |
tree | 23a96d8eba86efd8aa124fd49ca3319689ba02ae /Source/kwsys/testProcess.c | |
parent | 97b469537bffbedf2cfbc9c58f208b2641b1544a (diff) | |
download | CMake-ed853b5d70649465370f161b774cf91735a822b3.zip CMake-ed853b5d70649465370f161b774cf91735a822b3.tar.gz CMake-ed853b5d70649465370f161b774cf91735a822b3.tar.bz2 |
ENH: Removed pipe selection argument from WaitForData method in kwsysProcess. This greatly simplifies its use.
Diffstat (limited to 'Source/kwsys/testProcess.c')
-rw-r--r-- | Source/kwsys/testProcess.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index c569528..1b4ea74 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -66,9 +66,7 @@ int runChild(const char* cmd[], int state, int exception, int value) kwsysProcess_SetTimeout(kp, 3); kwsysProcess_Execute(kp); - while(kwsysProcess_WaitForData(kp, (kwsysProcess_Pipe_STDOUT | - kwsysProcess_Pipe_STDERR), - &data, &length, 0)) + while(kwsysProcess_WaitForData(kp, &data, &length, 0)) { fwrite(data, 1, length, stdout); fflush(stdout); |