summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-15 13:50:37 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-15 13:50:37 (GMT)
commit79a1734269d7cc919c20e11699ef8ace31e0db83 (patch)
treeac4a8125b58a9d73812390e30bf0f7ba7d7f9b4f /Source
parent09b766ef14d05a82415ff2ed80105310e173a6fe (diff)
downloadCMake-79a1734269d7cc919c20e11699ef8ace31e0db83.zip
CMake-79a1734269d7cc919c20e11699ef8ace31e0db83.tar.gz
CMake-79a1734269d7cc919c20e11699ef8ace31e0db83.tar.bz2
ENH: Added more error state checks to RunSingleCommand.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx10
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);