version 1.2, 2016/03/30 09:20:40 |
version 1.3, 2016/03/30 21:34:03 |
|
|
/* $OpenXM: OpenXM/src/kan96xx/plugin/mysig.c,v 1.1 2016/03/30 08:25:43 takayama Exp $ */ |
/* $OpenXM: OpenXM/src/kan96xx/plugin/mysig.c,v 1.2 2016/03/30 09:20:40 takayama Exp $ */ |
#include <stdio.h> |
#include <stdio.h> |
#include <signal.h> |
#include <signal.h> |
#include <unistd.h> |
#include <unistd.h> |
Line 39 int set_signal(int sig,void (*handler)(int m)) { |
|
Line 39 int set_signal(int sig,void (*handler)(int m)) { |
|
act.sa_flags |= SA_RESTART; |
act.sa_flags |= SA_RESTART; |
sigemptyset(&act.sa_mask); |
sigemptyset(&act.sa_mask); |
return(sigaction(sig,&act,&oldact)); |
return(sigaction(sig,&act,&oldact)); |
|
} |
|
int mysignal(int sig,void (*handler)(int m)) { |
|
return(set_signal(sig,handler)); |
} |
} |
|
|
|
|