suite/tests/client-interface/events.c
static void
intercept_signal(int sig, handler_t handler)
{
    int rc;
    struct sigaction act;
    act.sa_sigaction = handler;
    rc = sigfillset(&act.sa_mask); /* block all signals within handler */
    assert(rc == 0);
    act.sa_flags = SA_SIGINFO | SA_ONSTACK; /* send 3 args to handler */
    /* arm the signal */
    rc = sigaction(sig, &act, NULL);
    assert(rc == 0);
}
/* 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;
    rc = sigfillset(&act.sa_mask); 
    assert(rc == 0);
    act.sa_flags = SA_SIGINFO | SA_ONSTACK; 
    rc = sigaction(sig, &act, NULL);
    assert(rc == 0);
}
static void intercept_signal ( int sig , handler_t handler ) { int rc ; struct sigaction act ; act . sa_sigaction = handler ; rc = sigfillset ( & act . sa_mask ) ; assert ( rc == 0 ) ; act . sa_flags = SA_SIGINFO | SA_ONSTACK ; rc = sigaction ( sig , & act , NULL ) ; assert ( rc == 0 ) ; }
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 */ /* send 3 args to handler */ /* arm the signal */