From 78f12b47898b5508a8d2ac1c8652e86465d63f0c Mon Sep 17 00:00:00 2001 From: James Brister Date: Wed, 13 Oct 1999 17:49:21 +0000 Subject: [PATCH] Add bootfile to command line. --- bin/named/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/named/main.c b/bin/named/main.c index f2d96e0da6..314de49861 100644 --- a/bin/named/main.c +++ b/bin/named/main.c @@ -119,8 +119,11 @@ parse_command_line(int argc, char *argv[]) { int ch; ns_dbinfo_t *dbi; - while ((ch = isc_commandline_parse(argc, argv, "c:N:p:sz:")) != -1) { + while ((ch = isc_commandline_parse(argc, argv, "b:c:N:p:sz:")) != -1) { switch (ch) { + case 'b': + ns_g_conffile = isc_commandline_argument; + break; case 'c': /* XXXRTH temporary syntax */ dbi = isc_mem_get(ns_g_mctx, sizeof *dbi); @@ -291,6 +294,11 @@ setup() { early_fatal("isc_rwlock_init() failed: %s", isc_result_totext(result)); + result = isc_rwlock_init(&ns_g_confctxlock, 0, 0); + if (result != ISC_R_SUCCESS) + early_fatal("isc_rwlock_init() failed: %s", + isc_result_totext(result)); + result = create_managers(); if (result != ISC_R_SUCCESS) early_fatal("create_managers() failed: %s",