summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob E <ebobbob@gmail.com>2014-07-17 06:23:00 -0400
committerBrad King <brad.king@kitware.com>2014-07-17 09:51:48 -0400
commitcc3248f45231d24061bbc88fa6dd66897162cb3a (patch)
tree35bba91f624c8d73d55a940cbeae812e34d558a2
parent55d6aa36a522f2dd7849ccd53d9e743a88f8c7a1 (diff)
downloadcmake-cc3248f45231d24061bbc88fa6dd66897162cb3a.tar.gz
KWSys SystemInformation: No SA_RESTART on QNX
QNX not support SA_RESTART signal: /* #define SA_RESTART 0x0040 (not supported yet) */ Use it in SystemInformation only if it is defined.
-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 ec3a13315a..a03b39cce8 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);