mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Add bootfile to command line.
This commit is contained in:
@@ -119,8 +119,11 @@ parse_command_line(int argc, char *argv[]) {
|
|||||||
int ch;
|
int ch;
|
||||||
ns_dbinfo_t *dbi;
|
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) {
|
switch (ch) {
|
||||||
|
case 'b':
|
||||||
|
ns_g_conffile = isc_commandline_argument;
|
||||||
|
break;
|
||||||
case 'c':
|
case 'c':
|
||||||
/* XXXRTH temporary syntax */
|
/* XXXRTH temporary syntax */
|
||||||
dbi = isc_mem_get(ns_g_mctx, sizeof *dbi);
|
dbi = isc_mem_get(ns_g_mctx, sizeof *dbi);
|
||||||
@@ -291,6 +294,11 @@ setup() {
|
|||||||
early_fatal("isc_rwlock_init() failed: %s",
|
early_fatal("isc_rwlock_init() failed: %s",
|
||||||
isc_result_totext(result));
|
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();
|
result = create_managers();
|
||||||
if (result != ISC_R_SUCCESS)
|
if (result != ISC_R_SUCCESS)
|
||||||
early_fatal("create_managers() failed: %s",
|
early_fatal("create_managers() failed: %s",
|
||||||
|
Reference in New Issue
Block a user