Hacker News new | ask | show | jobs
by zwetan 2555 days ago
it should definitively clean up the module

you could make the same argument with threads

main process vs child threads, you would expect atexit installed in the child thread to execute before the main process atexit installed functions

1 comments

If it were thread local, sure, but they'd need access to a module cleanup function too, as there's no necessary tie between thread lifetime and module lifetime.