Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-100228: Warn from os.fork() if other threads exist. #100229

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Dec 14, 2022

Not comprehensive, best effort warning. There are cases when threads exist that this code currently does not detect.

Starting with a DeprecationWarning for now. Though honestly a RuntimeWarning would feel better and be much more visible. Lets wait and consider turning it into that in the future.

TODO list:

  • add some C error case coverage unit tests.

Not comprehensive, best effort.
@netlify
Copy link

netlify bot commented Dec 14, 2022

Deploy Preview for python-cpython-preview canceled.

Name Link
🔨 Latest commit fb098f1
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/639973834773de000955e484

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.

None yet

3 participants