/[MITgcm]/MITgcm/eesupp/src/sigreg.c
ViewVC logotype

Diff of /MITgcm/eesupp/src/sigreg.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by edhill, Mon May 22 22:05:18 2006 UTC revision 1.4 by edhill, Tue May 23 14:55:19 2006 UTC
# Line 41  static void killhandler( Line 41  static void killhandler(
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)) {

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

  ViewVC Help
Powered by ViewVC 1.1.22