41 |
/* int main( int argc, char ** argv ) */ |
/* int main( int argc, char ** argv ) */ |
42 |
void FC_NAMEMANGLE(sigreg) (int * aip) |
void FC_NAMEMANGLE(sigreg) (int * aip) |
43 |
{ |
{ |
|
ip = aip; |
|
44 |
#ifdef HAVE_SIGREG |
#ifdef HAVE_SIGREG |
45 |
struct sigaction s; |
struct sigaction s; |
46 |
|
ip = aip; |
47 |
s.sa_flags = SA_SIGINFO; |
s.sa_flags = SA_SIGINFO; |
48 |
s.sa_sigaction = (void *)killhandler; |
s.sa_sigaction = (void *)killhandler; |
49 |
if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) { |
if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) { |