Преглед на файлове

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.
Bob E преди 11 години
родител
ревизия
cc3248f452
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      Source/kwsys/SystemInformation.cxx

+ 4 - 1
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);