Skip to content

bpo-39877: Fix PyEval_RestoreThread() for daemon threads - #18808

Closed
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:daemon_thread_runtime
Closed

bpo-39877: Fix PyEval_RestoreThread() for daemon threads#18808
vstinner wants to merge 1 commit into
python:masterfrom
vstinner:daemon_thread_runtime

Conversation

@vstinner

@vstinnervstinner commented Mar 6, 2020

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
MemberAuthor

While this change does fix https://bugs.python.org/issue39877 it leaves Python in a sad state. Daemon threads simply loop on atttempting to take the GIL, but exit_thread_if_finalizing() is not called.

I wrote a more advanced solution: PR #18811.

@vstinnervstinner closed this Mar 6, 2020
@vstinner
vstinner deleted the daemon_thread_runtime branch March 6, 2020 17:31
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@the-knights-who-say-ni@bedevere-bot