]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run shutdown events with the task's existing threadid
authorOndřej Surý <ondrej@sury.org>
Wed, 19 May 2021 06:27:16 +0000 (08:27 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 24 May 2021 18:02:20 +0000 (20:02 +0200)
Previously, task->threadid was reassigned to 0 while shutting
down, which caused an assertion.

lib/isc/task.c

index 21d6593d737b2ee14776546351713113afbf78e4..937164e93f563713ddaeb817070e3304ac86e856 100644 (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);