On Sun, Jul 05, 2020 at 11:11:44PM +0200, Kamil Rytarowski wrote: > Literal and unextended implementation of the standard happened to be > unpractical. All/most mainstream users (all other BSDs, Win, Mac, GNU, > Solaris, ...) diverged from it within the last 20 years.
Funny that you should mention Windows. To quote MSDN: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/atexit?view=vs-2019 "The code in the atexit function should not contain any dependency on any DLL which could have already been unloaded when the atexit function is called." ...and Microsoft specifically introduced a different function for that purpose. Joerg