summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemInformation.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-18 14:15:23 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-18 14:15:23 (GMT)
commit6f3e094e9f0017b63e138e001c86e467c8f9b7c9 (patch)
tree9385a06db53dde1aee706f2c58b204fe5796e1da /Source/kwsys/SystemInformation.cxx
parentbbd930ea3c7fbc376d2f112ae7cd373a27cdf5bc (diff)
parentd4d1b7f7d1d6592f12a6692dfb8068aa495bd454 (diff)
downloadCMake-6f3e094e9f0017b63e138e001c86e467c8f9b7c9.zip
CMake-6f3e094e9f0017b63e138e001c86e467c8f9b7c9.tar.gz
CMake-6f3e094e9f0017b63e138e001c86e467c8f9b7c9.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r--Source/kwsys/SystemInformation.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 6544098..2521aac 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -3696,7 +3696,10 @@ void SystemInformationImplementation::SetStackTraceOnError(int enable)
// install ours
struct sigaction sa;
sa.sa_sigaction=(SigAction)StacktraceSignalHandler;
- sa.sa_flags=SA_SIGINFO|SA_RESTART|SA_RESETHAND;
+ sa.sa_flags=SA_SIGINFO|SA_RESETHAND;
+# ifdef SA_RESTART
+ sa.sa_flags|=SA_RESTART;
+# endif
sigemptyset(&sa.sa_mask);
sigaction(SIGABRT,&sa,0);