mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-31901: atexit callbacks should be run at subinterpreter shutdown (#4611)
Change atexit behavior and PEP-489 multiphase init support.
This commit is contained in:
parent
1976086362
commit
776407fe89
10 changed files with 91 additions and 46 deletions
|
@ -90,7 +90,6 @@ typedef struct pyruntimestate {
|
|||
#define NEXITFUNCS 32
|
||||
void (*exitfuncs[NEXITFUNCS])(void);
|
||||
int nexitfuncs;
|
||||
void (*pyexitfunc)(void);
|
||||
|
||||
struct _gc_runtime_state gc;
|
||||
struct _warnings_runtime_state warnings;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue