dnstap unbound-dnstap-sock, fixup signal handler exit.
@@ -957,8 +957,8 @@ int sig_quit = 0;
/** signal handler for user quit */
static RETSIGTYPE main_sigh(int sig)
{
- if(!sig_base) return;
verbose(VERB_ALGO, "exit on signal %d\n", sig);
+ if(sig_base)
ub_event_base_loopexit(sig_base);
sig_quit = 1;
}
@@ -996,6 +996,7 @@ setup_and_run(struct config_strlist_head* local_list,
ub_event_base_dispatch(base);
+ sig_base = NULL;
tap_socket_list_delete(maindata->acceptlist);
ub_event_base_free(base);
free(maindata);
