@RichFelker Was trying to dredge up the reason exit() can block according to POSIX. Do you remember what API caused that?
-
-
Replying to @CarlosODonell
stdio. exit flushes all FILEs in output mode and any operation on a FILE has to behave as if taking a mutex on it.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
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.
1 reply 0 retweets 1 like -
Replying to @CarlosODonell
Ah, yes, this one is also an issue. Outside scope of POSIX since POSIX doesn't specify a language with dtors.
1 reply 0 retweets 0 likes -
Replying to @RichFelker
Exactly. The destructors lack clear semantics for concurrent shutdown. At best we assured LIFO order and function start happens-before.
1 reply 0 retweets 0 likes
Replying to @CarlosODonell
I've added this to my mental notes on "why musl dlclose doesn't unload anything". :-)
6:32 AM - 22 Sep 2017
0 replies
0 retweets
0 likes
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.