From: Ondřej Surý Date: Wed, 19 May 2021 06:27:16 +0000 (+0200) Subject: Run shutdown events with the task's existing threadid X-Git-Tag: v9.17.14~30^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db5e301774fee32a884ddca1d7e26708d0636a2;p=thirdparty%2Fbind9.git Run shutdown events with the task's existing threadid Previously, task->threadid was reassigned to 0 while shutting down, which caused an assertion. --- diff --git a/lib/isc/task.c b/lib/isc/task.c index 21d6593d737..937164e93f5 100644 --- a/lib/isc/task.c +++ b/lib/isc/task.c @@ -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);