]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Make the dl_module code threadsafe in regards to loading and unloading modules
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 8 May 2024 23:43:06 +0000 (17:43 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 9 May 2024 17:27:18 +0000 (11:27 -0600)
commit76fee17aaa7f710506caaf53473931fa8658144c
tree5c05b7c733f6fbd9253002b3008b1c52b639184c
parent57a4d1cc71d35072a3f98fa6d81b9644f461155d
Make the dl_module code threadsafe in regards to loading and unloading modules

Ugh... I hate writing this sort of code, but unless we want to have a master "load and unload" modules thread, that we signal using message passing, this is unfortunately the way we need to do it.

Note: This only protects the dl_loader, not the instances.
src/lib/server/dl_module.c
src/lib/server/dl_module.h