each client mgr attaches to the view once on startup, and once on exit.

This commit is contained in:
Michael Graff 2000-01-20 01:24:53 +00:00
parent d24a3d2f93
commit df11e74a70
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}

View file

@ -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,