From: W.C.A. Wijngaards Date: Wed, 2 Dec 2020 10:51:54 +0000 (+0100) Subject: - Fix unbound-dnstap-socket to not use log routine from interrupt X-Git-Tag: release-1.13.1rc1~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb052e15434f933202b3067fc3fc68eaacdb6311;p=thirdparty%2Funbound.git - Fix unbound-dnstap-socket to not use log routine from interrupt handler and not print so frequently when invoked in sequence. --- diff --git a/dnstap/unbound-dnstap-socket.c b/dnstap/unbound-dnstap-socket.c index 3ebe2b4e4..8c37654e8 100644 --- a/dnstap/unbound-dnstap-socket.c +++ b/dnstap/unbound-dnstap-socket.c @@ -1166,7 +1166,8 @@ int sig_quit = 0; /** signal handler for user quit */ static RETSIGTYPE main_sigh(int sig) { - verbose(VERB_ALGO, "exit on signal %d\n", sig); + if(!sig_quit) + fprintf(stderr, "exit on signal %d\n", sig); if(sig_base) { ub_event_base_loopexit(sig_base); sig_base = NULL; diff --git a/doc/Changelog b/doc/Changelog index 405060fc4..9bb31615f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,8 @@ connections fail, in that case we print a hint that this is happening with the error in the logs. - Fix #356: deadlock when listening tcp. + - Fix unbound-dnstap-socket to not use log routine from interrupt + handler and not print so frequently when invoked in sequence. 1 December 2020: Wouter - Fix #358: Squelch udp connect 'no route to host' errors on low