suite/tests/security-common/decode-bad-stack.c
/* set up signal_handler as the handler for signal "sig" */
set up signal_handler as the handler for signal "sig"
set up signal_handler as the handler for signal " sig "
static void
intercept_signal(int sig, handler_t handler)
{
    int rc;
    struct sigaction act;
    act.sa_sigaction = (handler_3_t) handler;
    rc = sigfillset(&act.sa_mask); 
    ASSERT_NOERR(rc);
    act.sa_flags = SA_SIGINFO | SA_ONSTACK;
    rc = sigaction(sig, &act, NULL);
    ASSERT_NOERR(rc);
}
static void intercept_signal ( int sig , handler_t handler ) { int rc ; struct sigaction act ; act . sa_sigaction = ( handler_3_t ) handler ; rc = sigfillset ( & act . sa_mask ) ; ASSERT_NOERR ( rc ) ; act . sa_flags = SA_SIGINFO | SA_ONSTACK ; rc = sigaction ( sig , & act , NULL ) ; ASSERT_NOERR ( rc ) ; }
set up signal_handler as the handler for signal "sig"
set up signal_handler as the handler for signal " sig "
/* block all signals within handler */ /* FIXME: due to DR bug #654 we use SA_SIGINFO -- change it once DR works */ /* arm the signal */