/[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.1 by edhill, Sat Dec 3 08:30:32 2005 UTC revision 1.2 by edhill, Sun Dec 4 13:57:08 2005 UTC
# Line 37  static void killhandler( Line 37  static void killhandler(
37  /* int main( int argc, char ** argv ) */  /* int main( int argc, char ** argv ) */
38  void FC_NAMEMANGLE(sigreg) (int * aip)  void FC_NAMEMANGLE(sigreg) (int * aip)
39  {  {
     ip = aip;  
40      struct sigaction s;      struct sigaction s;
41        ip = aip;
42      s.sa_flags = SA_SIGINFO;      s.sa_flags = SA_SIGINFO;
43      s.sa_sigaction = (void *)killhandler;      s.sa_sigaction = (void *)killhandler;
44      if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) {      if(sigaction (SIGTERM,&s,(struct sigaction *)NULL)) {

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

  ViewVC Help
Powered by ViewVC 1.1.22