summaryrefslogtreecommitdiff
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2019-03-08 22:47:07 -0700
committerGitHub <noreply@github.com>2019-03-08 22:47:07 -0700
commit5be45a6105d656c551adeee7770afdc3b806fbb5 (patch)
tree94cadf53fd4024b66375474529dbb8b97cbac549 /Python/pylifecycle.c
parent7bda9de5504382931822baecba7f85028031c2cd (diff)
downloadcpython-git-5be45a6105d656c551adeee7770afdc3b806fbb5.tar.gz
bpo-33608: Minor cleanup related to pending calls. (gh-12247)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index 08107296be..0902508429 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();