3 ms·
> because you can have N function calls between the registered atexit function and the call to the library, I don't think that's a problem. A simple sweep thr
by kazinator 7y ago
> because you can have N function calls between the registered atexit function and the call to the library,
I don't think that's a problem. A simple sweep through the atexit list to see if any of the pointers are into this library, to block the unload.
If some atexit-registered function not in that unloaded library has a secretly stashed pointer to a function in that library, and calls it during atexit, that's a programmer problem.