by account42 · 1mo ago · 0 comments
So you could write your own atexit, but maybe someone's got a version of atexit that cancels callbacks from unloaded libraries, or one that keeps them loaded if they have callbacks, or one that calls the callbacks immediately during dlclose.