reviewed: bwelling

1315.   [bug]           isc_log_setdebuglevel() needed to lock the log
                        context.
This commit is contained in:
Mark Andrews
2002-07-11 02:32:35 +00:00
parent b6c59ece79
commit 90656e32ea
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -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
+4 -1
View File
@@ -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