]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-26558: Fix Py_FatalError() with GIL released (GH-10267) (GH-10270)
authorVictor Stinner <vstinner@redhat.com>
Thu, 1 Nov 2018 00:11:54 +0000 (01:11 +0100)
committerGitHub <noreply@github.com>
Thu, 1 Nov 2018 00:11:54 +0000 (01:11 +0100)
commitff56597151206a03ce421712516323430b7749c8
tree411619aa3e05b8c97ab1545071f407c496162429
parent907b07ee31a657914dafb0a6b7fa724be0f8d8ac
bpo-26558: Fix Py_FatalError() with GIL released (GH-10267) (GH-10270)

Don't call _Py_FatalError_PrintExc() nor flush_std_files() if the
current thread doesn't hold the GIL, or if the current thread
has no Python state thread.

(cherry picked from commit 3a228ab17c2a9cffd1a2f15f30d6209768de20a6)
Python/pylifecycle.c