2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 22:45:39 +00:00

Run shutdown events with the task's existing threadid

Previously, task->threadid was reassigned to 0 while shutting
down, which caused an assertion.
This commit is contained in:
Ondřej Surý
2021-05-19 08:27:16 +02:00
parent 0be7ea78be
commit 4db5e30177

View File

@@ -1020,7 +1020,6 @@ isc__taskmgr_shutdown(isc_taskmgr_t *manager) {
{
LOCK(&task->lock);
if (task_shutdown(task)) {
task->threadid = 0;
task_ready(task);
}
UNLOCK(&task->lock);