]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unbound-dnstap-socket to not use log routine from interrupt
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Dec 2020 10:51:54 +0000 (11:51 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 2 Dec 2020 10:51:54 +0000 (11:51 +0100)
  handler and not print so frequently when invoked in sequence.

dnstap/unbound-dnstap-socket.c
doc/Changelog

index 3ebe2b4e4124b79758dadd9ee7a92632760c17d9..8c37654e827d56c764c2fae59367705fbe5ca18a 100644 (file)
@@ -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;
index 405060fc4b0384d6d7dc6017f6ba50ec2f9e6b5f..9bb31615ffdbc8908b57b28bedf7cad541f3e706 100644 (file)
@@ -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