Merge branch 'backport-kwsys-qnx-fix' into release
This commit is contained in:
commit
ce7a5ca895
|
@ -3696,7 +3696,10 @@ void SystemInformationImplementation::SetStackTraceOnError(int enable)
|
||||||
// install ours
|
// install ours
|
||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
sa.sa_sigaction=(SigAction)StacktraceSignalHandler;
|
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);
|
sigemptyset(&sa.sa_mask);
|
||||||
|
|
||||||
sigaction(SIGABRT,&sa,0);
|
sigaction(SIGABRT,&sa,0);
|
||||||
|
|
Loading…
Reference in New Issue