@RichFelker Was trying to dredge up the reason exit() can block according to POSIX. Do you remember what API caused that?
stdio. exit flushes all FILEs in output mode and any operation on a FILE has to behave as if taking a mutex on it.
-
-
Forgot to say thanks. Paul and I cleaned up some dlclose() and exit() races. Exit blocks waiting for dlclose to finish to access link maps.
-
Ah, yes, this one is also an issue. Outside scope of POSIX since POSIX doesn't specify a language with dtors.
-
Exactly. The destructors lack clear semantics for concurrent shutdown. At best we assured LIFO order and function start happens-before.
-
I've added this to my mental notes on "why musl dlclose doesn't unload anything". :-)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.