Module Name:    src
Committed By:   christos
Date:           Sat Mar 15 18:28:23 UTC 2014

Modified Files:
        src/external/bsd/bind/dist/lib/isc/unix: app.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/bsd/bind/dist/lib/isc/unix/app.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/bind/dist/lib/isc/unix/app.c
diff -u src/external/bsd/bind/dist/lib/isc/unix/app.c:1.9 src/external/bsd/bind/dist/lib/isc/unix/app.c:1.10
--- src/external/bsd/bind/dist/lib/isc/unix/app.c:1.9	Fri Feb 28 22:24:39 2014
+++ src/external/bsd/bind/dist/lib/isc/unix/app.c	Sat Mar 15 14:28:22 2014
@@ -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 @@ isc__app_ctxstart(isc_appctx_t *ctx0) {
 #endif
 
 #ifdef ISC_PLATFORM_USETHREADS
+	if (isc_bind9) {
 	/*
 	 * Block SIGHUP, SIGINT, SIGTERM.
 	 *
@@ -345,6 +346,7 @@ isc__app_ctxstart(isc_appctx_t *ctx0) {
 		result = ISC_R_UNEXPECTED;
 		goto cleanup;
 	}
+	}
 #else /* ISC_PLATFORM_USETHREADS */
 	/*
 	 * Unblock SIGHUP, SIGINT, SIGTERM.

Reply via email to