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.
This commit is contained in:
christos 2014-03-15 18:28:22 +00:00
parent 2d6f1ae980
commit a1aa0d7245

View File

@ -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.