Commit 697b1401 authored by Bob E's avatar Bob E Committed by Brad King

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.

Change-Id: I4a00179fe3f288bb524e002ba37094c73a8a8b08
parent 5f28a52b
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment