summaryrefslogtreecommitdiff
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorMarcel Plch <gmarcel.plch@gmail.com>2017-12-20 11:17:58 +0100
committerAntoine Pitrou <pitrou@free.fr>2017-12-20 11:17:58 +0100
commit776407fe893fd42972c7e3f71423d9d86741d07c (patch)
tree2d2a5781d83709c56d27e5815af2d7a2fc5726c0 /Python/pystate.c
parent19760863623b636a63ccf649107d9504c6465a92 (diff)
downloadcpython-git-776407fe893fd42972c7e3f71423d9d86741d07c.tar.gz
bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611)
Change atexit behavior and PEP-489 multiphase init support.
Diffstat (limited to 'Python/pystate.c')
-rw-r--r--Python/pystate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pystate.c b/Python/pystate.c
index ec7eb450b6..028292e42f 100644
--- a/Python/pystate.c
+++ b/Python/pystate.c
@@ -153,6 +153,8 @@ PyInterpreterState_New(void)
interp->after_forkers_parent = NULL;
interp->after_forkers_child = NULL;
#endif
+ interp->pyexitfunc = NULL;
+ interp->pyexitmodule = NULL;
HEAD_LOCK();
interp->next = _PyRuntime.interpreters.head;