mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-24 11:08:45 +00:00
basic reload support
This commit is contained in:
parent
97f1a75cf0
commit
b122f0719f
@ -282,12 +282,27 @@ main(int argc, char *argv[]) {
|
|||||||
setup();
|
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();
|
do {
|
||||||
if (result != ISC_R_SUCCESS)
|
result = isc_app_run();
|
||||||
UNEXPECTED_ERROR(__FILE__, __LINE__, "isc_app_run(): %s",
|
|
||||||
isc_result_totext(result));
|
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();
|
cleanup();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user