[BACK]Return to mysig.c CVS log [TXT][DIR] Up to [local] / OpenXM / src / kan96xx / plugin

Diff for /OpenXM/src/kan96xx/plugin/Attic/mysig.c between version 1.2 and 1.3

version 1.2, 2016/03/30 09:20:40 version 1.3, 2016/03/30 21:34:03
Line 1 
Line 1 
 /* $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));
 }  }
   
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>