/[monit]/monit/alert.c
ViewVC logotype

Diff of /monit/alert.c

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

revision 1.26 by chopp, Wed Aug 13 22:18:42 2003 UTC revision 1.27 by hauk, Thu Aug 14 21:43:14 2003 UTC
# Line 90  void handle_alert(Event_T E) { Line 90  void handle_alert(Event_T E) {
90      sigset_t ns, os;      sigset_t ns, os;
91      Mail_T list= NULL;      Mail_T list= NULL;
92    
93      /* Set a SIGUSR1 block here */      set_signal_block(&ns, &os);
     sigemptyset(&ns);  
     sigaddset(&ns, SIGUSR1);  
     pthread_sigmask(SIG_BLOCK, &ns, &os);  
94            
95      /*      /*
96       * Build a mail-list with recipients that has registered interest       * Build a mail-list with recipients that has registered interest
# Line 135  void handle_alert(Event_T E) { Line 132  void handle_alert(Event_T E) {
132                
133      }      }
134    
135      /* Release the SIGUSR1 block */      unset_signal_block(&os);
     pthread_sigmask(SIG_SETMASK, &os, NULL);  
136    
137    }    }
138    

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26