From: Ondřej Surý Date: Wed, 16 Apr 2025 12:26:52 +0000 (+0000) Subject: fix: dev: Move the call_rcu_thread explicit create and shutdown to isc_loop X-Git-Tag: v9.21.8~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e373f4062feb37bbe4046c11a424f924cea40396;p=thirdparty%2Fbind9.git fix: dev: Move the call_rcu_thread explicit create and shutdown to isc_loop When isc__thread_initialize() is called from a library constructor, it could be called before we fork the main process. This happens with named, and then we have the call_rcu_thread attached to the pre-fork process and not the post-fork process, which means that the initial process will never shutdown, because there's noone to tell it so. Move the isc__thread_initialize() and isc__thread_shutdown() to the isc_loop unit where we call it before creating the extra thread and after joining all the extra threads respectively. Closes #5281 Merge branch '5281-move-call_rcu-thread-ctor-dtor-to-main-thread' into 'main' See merge request isc-projects/bind9!10394 --- e373f4062feb37bbe4046c11a424f924cea40396