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; |