61 |
struct sigaction action; |
struct sigaction action; |
62 |
action.sa_handler = handler; |
action.sa_handler = handler; |
63 |
/* action.sa_flags = SA_RESTART | ((signo == SIGSEGV || signo == SIGBUS) ? SV_ONSTACK : 0) */ |
/* action.sa_flags = SA_RESTART | ((signo == SIGSEGV || signo == SIGBUS) ? SV_ONSTACK : 0) */ |
64 |
action.sa_flags = SA_RESTART | ((signo == SIGSEGV || signo == SIGBUS) ? SV_ONSTACK : 0) |
action.sa_flags = SA_RESTART | ((signo == SIGSEGV || signo == SIGBUS) ? SA_ONSTACK : 0) |
65 |
#ifdef SA_SIGINFO |
#ifdef SA_SIGINFO |
66 |
| SA_SIGINFO |
| SA_SIGINFO |
67 |
#endif |
#endif |
68 |
; |
; |
69 |
sigemptyset(&action.sa_mask); |
sigemptyset(&action.sa_mask); |
70 |
sigaddset(&action.sa_mask,signo); |
/* sigaddset(&action.sa_mask,signo); */ |
71 |
sigaction(signo,&action,0); |
sigaction(signo,&action,0); |
72 |
#else |
#else |
73 |
#ifdef HAVE_SIGVEC |
#ifdef HAVE_SIGVEC |