diff --git a/CHANGES b/CHANGES index 8beb50ac4c..170f2abf9e 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,9 @@ 1325. [bug] Document that internal zones are included in the rndc status results. +1315. [bug] isc_log_setdebuglevel() needed to lock the log + context. + 1309. [port] See if -ldl is required for OpenSSL? [RT #2672] 1308. [bug] Adjusted REQUIRE's in lib/dns/name.c to better diff --git a/lib/isc/log.c b/lib/isc/log.c index 708a64c465..b9e5385555 100644 --- a/lib/isc/log.c +++ b/lib/isc/log.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: log.c,v 1.70.2.3 2002/02/08 03:57:38 marka Exp $ */ +/* $Id: log.c,v 1.70.2.4 2002/07/11 02:32:35 marka Exp $ */ /* Principal Authors: DCL */ @@ -941,6 +941,8 @@ isc_log_setdebuglevel(isc_log_t *lctx, unsigned int level) { REQUIRE(VALID_CONTEXT(lctx)); + LOCK(&lctx->lock); + lctx->debug_level = level; /* * Close ISC_LOG_DEBUGONLY channels if level is zero. @@ -955,6 +957,7 @@ isc_log_setdebuglevel(isc_log_t *lctx, unsigned int level) { (void)fclose(FILE_STREAM(channel)); FILE_STREAM(channel) = NULL; } + UNLOCK(&lctx->lock); } unsigned int