diff options
author | Brad King <brad.king@kitware.com> | 2004-01-15 13:50:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-01-15 13:50:37 (GMT) |
commit | 79a1734269d7cc919c20e11699ef8ace31e0db83 (patch) | |
tree | ac4a8125b58a9d73812390e30bf0f7ba7d7f9b4f /Source/cmSystemTools.cxx | |
parent | 09b766ef14d05a82415ff2ed80105310e173a6fe (diff) | |
download | CMake-79a1734269d7cc919c20e11699ef8ace31e0db83.zip CMake-79a1734269d7cc919c20e11699ef8ace31e0db83.tar.gz CMake-79a1734269d7cc919c20e11699ef8ace31e0db83.tar.bz2 |
ENH: Added more error state checks to RunSingleCommand.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 87a33a0..c36529b 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -469,11 +469,21 @@ bool cmSystemTools::RunSingleCommand( } } } + else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Exception) + { + std::cerr << cmsysProcess_GetExceptionString(cp) << "\n"; + result = false; + } else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Error) { std::cerr << cmsysProcess_GetErrorString(cp) << "\n"; result = false; } + else if(cmsysProcess_GetState(cp) == cmsysProcess_State_Expired) + { + std::cerr << "Process terminated due to timeout\n"; + result = false; + } cmsysProcess_Delete(cp); |