2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-23 10:39:16 +00:00

basic reload support

This commit is contained in:
Bob Halley 2000-01-22 01:40:10 +00:00
parent 97f1a75cf0
commit b122f0719f

View File

@ -282,12 +282,27 @@ main(int argc, char *argv[]) {
setup();
/*
* Start things running and then wait for a shutdown request.
* Start things running and then wait for a shutdown request
* or reload.
*/
result = isc_app_run();
if (result != ISC_R_SUCCESS)
UNEXPECTED_ERROR(__FILE__, __LINE__, "isc_app_run(): %s",
isc_result_totext(result));
do {
result = isc_app_run();
if (result == ISC_R_RELOAD) {
/*
* XXXRTH Replace this with something useful.
*/
printf("reload requested\n");
} else if (result != ISC_R_SUCCESS) {
UNEXPECTED_ERROR(__FILE__, __LINE__,
"isc_app_run(): %s",
isc_result_totext(result));
/*
* Force exit.
*/
result = ISC_R_SUCCESS;
}
} while (result != ISC_R_SUCCESS);
cleanup();