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

Diff of /monit/monit_http.c

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

revision 1.15 by chopp, Wed Aug 13 22:18:42 2003 UTC revision 1.16 by hauk, Sun Aug 17 02:21:22 2003 UTC
# Line 158  static void *thread_wrapper(void *arg) { Line 158  static void *thread_wrapper(void *arg) {
158    sigset_t ns;    sigset_t ns;
159    
160    pthread_detach(pthread_self());    pthread_detach(pthread_self());
161      /* Block collective signals in the http thread. The http server is
162    /* Block the SIGUSR1 and SIGHUP signals in this thread */     * taken down gracefully by signaling the main monit thread */
163    sigemptyset(&ns);    set_signal_block(&ns, NULL);
   sigaddset(&ns, SIGUSR1);  
   sigaddset(&ns, SIGHUP);  
   pthread_sigmask(SIG_BLOCK, &ns, NULL);  
   
164    start_httpd(Run.httpdport, 10, Run.bind_addr);    start_httpd(Run.httpdport, 10, Run.bind_addr);
165    
166    return NULL;    return NULL;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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