]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #624: Unable to stop Unbound in Windows console (does not
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Feb 2022 07:53:24 +0000 (08:53 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 11 Feb 2022 07:53:24 +0000 (08:53 +0100)
  respond to CTRL+C command).

daemon/worker.c
doc/Changelog

index 862affb24e9a14ef454c58c7fcbf1f079c628c26..aee308d7dd20273d1332f0f082264815fdcece0f 100644 (file)
@@ -1591,6 +1591,9 @@ worker_sighandler(int sig, void* arg)
                case SIGHUP:
                        comm_base_exit(worker->base);
                        break;
+#endif
+#ifdef SIGBREAK
+               case SIGBREAK:
 #endif
                case SIGINT:
                        worker->need_to_exit = 1;
@@ -1709,6 +1712,9 @@ worker_init(struct worker* worker, struct config_file *cfg,
        if(do_sigs) {
 #ifdef SIGHUP
                ub_thread_sig_unblock(SIGHUP);
+#endif
+#ifdef SIGBREAK
+               ub_thread_sig_unblock(SIGBREAK);
 #endif
                ub_thread_sig_unblock(SIGINT);
 #ifdef SIGQUIT
@@ -1726,6 +1732,9 @@ worker_init(struct worker* worker, struct config_file *cfg,
                        || !comm_signal_bind(worker->comsig, SIGQUIT)
 #endif
                        || !comm_signal_bind(worker->comsig, SIGTERM)
+#ifdef SIGBREAK
+                       || !comm_signal_bind(worker->comsig, SIGBREAK)
+#endif
                        || !comm_signal_bind(worker->comsig, SIGINT)) {
                        log_err("could not create signal handlers");
                        worker_delete(worker);
index c930083639401542c618736ca401898e85a2159b..abdf7c878fa98904ea5c47787d3e6abae5dd8c1e 100644 (file)
@@ -1,3 +1,7 @@
+11 February 2022: Wouter
+       - Fix #624: Unable to stop Unbound in Windows console (does not
+         respond to CTRL+C command).
+
 7 February 2022: Wouter
        - Fix that TCP interface does not use TLS when TLS is also configured.