[issue31901] atexit callbacks only called for current subinterpreter

Graham Dumpleton report at bugs.python.org
Wed Nov 8 15:07:09 EST 2017


Graham Dumpleton <Graham.Dumpleton at gmail.com> added the comment:

FWIW, that atexit callbacks were not called for sub interpreters ever was a pain point for mod_wsgi.

What mod_wsgi does is override the destruction sequence so that it will first go through each sub interpreter when and shutdown threading explicitly, then call atexit handlers. When that is done, only then will it destroy the sub interpreter and the main interpreter.

I have noted this previously in discussion associated with:

https://bugs.python.org/issue6531

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31901>
_______________________________________


More information about the Python-bugs-list mailing list