The C standard library function atexit is broken
I believe this was changed everywhere because glibc maintainers decided that it made more sense to run at library unload time, and then everyone else had to change their implementation to match &quot;what Linux does.&quot;<p>That being said, none of these behaviors really make any sense. If the registered function isn&#x27;t mapped into the process address space any more, what is supposed to happen?