diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2019-03-09 05:47:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-09 05:47:07 (GMT) |
commit | 5be45a6105d656c551adeee7770afdc3b806fbb5 (patch) | |
tree | 94cadf53fd4024b66375474529dbb8b97cbac549 /Python/pylifecycle.c | |
parent | 7bda9de5504382931822baecba7f85028031c2cd (diff) | |
download | cpython-5be45a6105d656c551adeee7770afdc3b806fbb5.zip cpython-5be45a6105d656c551adeee7770afdc3b806fbb5.tar.gz cpython-5be45a6105d656c551adeee7770afdc3b806fbb5.tar.bz2 |
bpo-33608: Minor cleanup related to pending calls. (gh-12247)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r-- | Python/pylifecycle.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 0810729..0902508 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -1460,6 +1460,7 @@ Py_EndInterpreter(PyThreadState *tstate) Py_FatalError("Py_EndInterpreter: thread is not current"); if (tstate->frame != NULL) Py_FatalError("Py_EndInterpreter: thread still has a frame"); + interp->finalizing = 1; wait_for_thread_shutdown(); |