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/test1.cxx | |
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/test1.cxx')
-rw-r--r-- | Source/kwsys/test1.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/kwsys/test1.cxx b/Source/kwsys/test1.cxx index 7dd61a4..84c3f8d 100644 --- a/Source/kwsys/test1.cxx +++ b/Source/kwsys/test1.cxx @@ -11,9 +11,7 @@ int main() kwsysProcess_Execute(kp); char* data = 0; int length = 0; - while(kwsysProcess_WaitForData(kp, (kwsysProcess_Pipe_STDOUT | - kwsysProcess_Pipe_STDERR), - &data, &length, 0)) + while(kwsysProcess_WaitForData(kp, &data, &length, 0)) { kwsys_std::cout.write(data, length); } |