Skip to content

Commit

Permalink
Clarify FIXME.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Jan 26, 2025
1 parent 76f04c6 commit f5f7738
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/common/init.c.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ static int load_library(void) {
// Run dtor as late as possible in case library functions are
// called in other global dtors
// FIXME: this may crash if one thread is calling into library
// while some other thread executes exit().
// while some other thread executes exit(). It's no clear
// how to fix this besides simply NOT dlclosing library at all.
static void __attribute__((destructor(101))) unload_lib(void) {
if (lib_handle) {
for (int i = 0; i < dlclose_count; ++i)
Expand Down

0 comments on commit f5f7738

Please sign in to comment.