sigset_t ss;
sigemptyset (&ss);
INTERNAL_SYSCALL_DECL (err);
+#ifdef __CHKP__
+ __sigdelset(&ss, SIGSEGV);
+#endif
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
}
sigset_t oss;
sigfillset (&ss);
INTERNAL_SYSCALL_DECL (err);
+#ifdef __CHKP__
+ __sigdelset(&ss, SIGSEGV);
+#endif
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
int ret = pthread_create (threadp, &attr, tf, arg);
sigset_t ss;
sigemptyset (&ss);
INTERNAL_SYSCALL_DECL (err);
+#ifdef __CHKP__
+ __sigdelset(&ss, SIGSEGV);
+#endif
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
}
sigset_t oss;
sigfillset (&ss);
INTERNAL_SYSCALL_DECL (err);
+#ifdef __CHKP__
+ __sigdelset(&ss, SIGSEGV);
+#endif
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
int ret = pthread_create (threadp, &attr, tf, arg);
{
sigset_t ss;
sigfillset (&ss);
+#ifdef __CHKP__
+ sigdelset (&ss, SIGSEGV);
+#endif
return pthread_sigmask (how, &ss, oss);
}
sigset_t oss;
sigfillset (&ss);
__sigaddset (&ss, SIGCANCEL);
+#ifdef __CHKP__
+ __sigdelset (&ss, SIGSEGV);
+#endif
INTERNAL_SYSCALL_DECL (err);
INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
sigset_t ss;
sigfillset (&ss);
+#ifdef __CHKP__
+ sigdelset (&ss, SIGSEGV);
+#endif
sigsuspend (&ss);
exit (0);
}
sigfillset (&ss);
+#ifdef __CHKP__
+ sigdelset(&ss, SIGSEGV);
+#endif
if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0)
{
puts ("1st pthread_sigmask failed");
alarm (10);
sigfillset (&ss);
+#ifdef __CHKP__
+ sigdelset(&ss, SIGSEGV);
+#endif
if (pthread_sigmask (SIG_SETMASK, &ss, NULL) != 0)
{
/* Block all signals. */
sigset_t ss;
sigfillset (&ss);
+#ifdef __CHKP__
+ sigdelset(&ss, SIGSEGV);
+#endif
th_main = pthread_self ();
};
sigfillset (&sa.sa_mask);
+#ifdef __CHKP__
+ sigdelset(&ss, SIGSEGV);
+#endif
if (sigaction (sig0 + i, &sa, NULL) != 0)
{
printf ("sigaction for signal %d failed\n", i);
act.sa_handler = (sighandler_t) &profil_counter;
act.sa_flags = SA_RESTART;
__sigfillset (&act.sa_mask);
+#ifdef __CHKP__
+ __sigdelset (&act.sa_mask, SIGSEGV);
+#endif
if (__sigaction (SIGPROF, &act, oact_ptr) < 0)
return -1;
/* Prepare set. */
__sigfillset (&tmp_mask);
+#ifdef __CHKP__
+ __sigdelset (&tmp_mask, SIGSEGV):
+#endif
/* Unblock all signals in the SET and register our nice handler. */
action.sa_handler = ignore_signal;
action.sa_flags = 0;
__sigfillset (&action.sa_mask); /* Block all signals for handler. */
+#ifdef __CHKP__
+ __sigdelset (&action.sa_mask, SIGSEGV):
+#endif
/* Make sure we recognize error conditions by setting WAS_SIG to a
value which does not describe a legal signal number. */
act.sa_handler = (sighandler_t) &profil_counter_ushort;
act.sa_flags = SA_RESTART;
__sigfillset (&act.sa_mask);
+#ifdef __CHKP__
+ __sigdelset (&act.sa_mask, SIGSEGV);
+#endif
if (__sigaction (SIGPROF, &act, &prof_info.saved_action) < 0)
return -1;