Merge branch 'backport-kwsys-qnx-fix' into release

This commit is contained in:
Brad King 2014-07-17 09:52:14 -04:00
commit ce7a5ca895
1 changed files with 4 additions and 1 deletions

View File

@ -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);