Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
vstinner wants to merge 1 commit into
python:masterpython/cpython:masterfrom
vstinner:daemon_thread_runtimeCopy head branch name to clipboard
Closed

bpo-39877: Fix PyEval_RestoreThread() for daemon threads#18808
vstinner wants to merge 1 commit into
python:masterpython/cpython:masterfrom
vstinner:daemon_thread_runtimeCopy head branch name to clipboard

Conversation

@vstinner

@vstinner vstinner commented Mar 6, 2020

Copy link
Copy Markdown
Member

@vstinner

vstinner commented Mar 6, 2020

Copy link
Copy Markdown
Member Author

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.

@vstinner vstinner closed this Mar 6, 2020
@vstinner vstinner deleted the daemon_thread_runtime branch March 6, 2020 17:31
Sign up for free to 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.