Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/bind/dist/lib/isc/unix Since the sigwait stuff ...



details:   https://anonhg.NetBSD.org/src/rev/a876660eb8fd
branches:  trunk
changeset: 327738:a876660eb8fd
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Mar 15 18:28:22 2014 +0000

description:
Since the sigwait stuff is conditional to isc_bind9, we cannot block
SIGHUP,SIGINT,SIGTERM on startup, so make those also conditional to isc_bind9.
The net effect of this was that dhclient blocked the 3 signals for both
itself and its progeny so /etc/rc.d/dhclient restart would not work.

diffstat:

 external/bsd/bind/dist/lib/isc/unix/app.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r ed2142b89992 -r a876660eb8fd external/bsd/bind/dist/lib/isc/unix/app.c
--- a/external/bsd/bind/dist/lib/isc/unix/app.c Sat Mar 15 17:28:25 2014 +0000
+++ b/external/bsd/bind/dist/lib/isc/unix/app.c Sat Mar 15 18:28:22 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: app.c,v 1.9 2014/03/01 03:24:39 christos Exp $ */
+/*     $NetBSD: app.c,v 1.10 2014/03/15 18:28:22 christos Exp $        */
 
 /*
  * Copyright (C) 2004, 2005, 2007-2009, 2013, 2014  Internet Systems Consortium, Inc. ("ISC")
@@ -317,6 +317,7 @@
 #endif
 
 #ifdef ISC_PLATFORM_USETHREADS
+       if (isc_bind9) {
        /*
         * Block SIGHUP, SIGINT, SIGTERM.
         *
@@ -345,6 +346,7 @@
                result = ISC_R_UNEXPECTED;
                goto cleanup;
        }
+       }
 #else /* ISC_PLATFORM_USETHREADS */
        /*
         * Unblock SIGHUP, SIGINT, SIGTERM.



Home | Main Index | Thread Index | Old Index