Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind/dist/lib/isc Don't block signals if we are...



details:   https://anonhg.NetBSD.org/src/rev/91418260dc13
branches:  trunk
changeset: 1020222:91418260dc13
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 03 22:44:43 2021 +0000

description:
Don't block signals if we are not bind (because if we are not bind, we don't
sigwait(2)).

diffstat:

 external/mpl/bind/dist/lib/isc/app.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 0dbf7a280aba -r 91418260dc13 external/mpl/bind/dist/lib/isc/app.c
--- a/external/mpl/bind/dist/lib/isc/app.c      Sat Apr 03 22:20:26 2021 +0000
+++ b/external/mpl/bind/dist/lib/isc/app.c      Sat Apr 03 22:44:43 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: app.c,v 1.4 2021/02/19 16:42:19 christos Exp $ */
+/*     $NetBSD: app.c,v 1.5 2021/04/03 22:44:43 christos Exp $ */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -164,6 +164,8 @@
         * blocked by default, ensuring that only the thread that calls
         * sigwait() for them will get those signals.
         */
+       if (isc_bind9) {
+
        if (sigemptyset(&sset) != 0 || sigaddset(&sset, SIGHUP) != 0 ||
            sigaddset(&sset, SIGINT) != 0 || sigaddset(&sset, SIGTERM) != 0)
        {
@@ -178,6 +180,8 @@
                                "isc_app_start() pthread_sigmask: %s", strbuf);
        }
 
+       }
+
 #endif /* WIN32 */
 
        return (ISC_R_SUCCESS);



Home | Main Index | Thread Index | Old Index