we need to detach the rndc task when calling isc_app_shutdown(),
otherwise it may be detached before the last reference to it.
while this does not prevent rndc from working, it causes a spurious
core dump on shutdown.
atomic_load_acquire(&recvs) == 0)
{
shuttingdown = true;
+ isc_task_detach(&rndc_task);
isc_app_shutdown();
}
}
atomic_load_acquire(&sends) == 0)
{
shuttingdown = true;
+ isc_task_detach(&rndc_task);
isc_app_shutdown();
}
}
fatal("isc_app_run() failed: %s", isc_result_totext(result));
}
- isc_task_detach(&rndc_task);
isc_managers_destroy(&netmgr, &taskmgr, NULL);
/*