summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-07-28 13:14:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-07-28 13:14:21 (GMT)
commitc8dab9636208866f3b86fa6113cdd00c47e160cc (patch)
treef3d9f904a4bfe48ca197fcdaef8d9f5fa094ccb6
parent015ff69c66af940561ea932f776a7ecbfd1ed77a (diff)
downloadCMake-c8dab9636208866f3b86fa6113cdd00c47e160cc.zip
CMake-c8dab9636208866f3b86fa6113cdd00c47e160cc.tar.gz
CMake-c8dab9636208866f3b86fa6113cdd00c47e160cc.tar.bz2
ENH: move from main tree
-rw-r--r--Source/kwsys/SystemTools.cxx12
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx
index 676e175..8d95811 100644
--- a/Source/kwsys/SystemTools.cxx
+++ b/Source/kwsys/SystemTools.cxx
@@ -3547,15 +3547,6 @@ void SystemTools::Delay(unsigned int msec)
#ifdef _WIN32
Sleep(msec);
#else
- // Block signals to make sure the entire sleep duration occurs. If
- // a signal were to arrive the sleep or usleep might return early
- // and there is no way to accurately know how much time was really
- // slept without setting up timers.
- sigset_t newset;
- sigset_t oldset;
- sigfillset(&newset);
- sigprocmask(SIG_BLOCK, &newset, &oldset);
-
// The sleep function gives 1 second resolution and the usleep
// function gives 1e-6 second resolution but on some platforms has a
// maximum sleep time of 1 second. This could be re-implemented to
@@ -3572,9 +3563,6 @@ void SystemTools::Delay(unsigned int msec)
{
usleep(msec * 1000);
}
-
- // Restore the signal mask to the previous setting.
- sigprocmask(SIG_SETMASK, &oldset, 0);
#endif
}