mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
each client mgr attaches to the view once on startup, and once on exit.
This commit is contained in:
parent
d24a3d2f93
commit
df11e74a70
2 changed files with 2 additions and 1 deletions
|
|
@ -67,6 +67,7 @@ clientmgr_can_die(clientmgr_t *cm)
|
|||
if (ISC_LIST_HEAD(cm->running) != NULL)
|
||||
return;
|
||||
|
||||
dns_view_detach(&cm->view);
|
||||
isc_task_detach(&cm->task);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -264,7 +264,7 @@ main(int argc, char **argv)
|
|||
for (i = 0 ; i < NTASKS ; i++) {
|
||||
cmgr[i].task = NULL;
|
||||
cmgr[i].sock = sock;
|
||||
cmgr[i].view = view;
|
||||
dns_view_attach(view, &cmgr[i].view);
|
||||
cmgr[i].flags = 0;
|
||||
ISC_EVENT_INIT(&cmgr[i].sdev, sizeof(isc_event_t),
|
||||
ISC_EVENTATTR_NOPURGE,
|
||||
|
|
|
|||
Loading…
Reference in a new issue