mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
Add bootfile to command line.
This commit is contained in:
parent
0340a9c05a
commit
78f12b4789
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user