diff options
author | Brad King <brad.king@kitware.com> | 2014-07-17 13:52:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-17 13:52:14 (GMT) |
commit | ce7a5ca895d0669b33d213c6fc94f484611d6e24 (patch) | |
tree | 035f6bc625e27558de829f4d236d97319f3ae7f3 /Source | |
parent | 9d2bada3d4948f2a7c40d3e73ebc0a15d1c2dc3a (diff) | |
parent | cc3248f45231d24061bbc88fa6dd66897162cb3a (diff) | |
download | CMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.zip CMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.tar.gz CMake-ce7a5ca895d0669b33d213c6fc94f484611d6e24.tar.bz2 |
Merge branch 'backport-kwsys-qnx-fix' into release
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index ec3a133..a03b39c 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); |