Sitelet https://web.archive.org/web/20221223132422/https://github.com/python/cpython/pull/20596
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

PyOS_AfterFork_Child() uses PyStatus #20596

Merged
merged 1 commit into from Jun 2, 2020
Merged

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jun 2, 2020

PyOS_AfterFork_Child() helper functions now return a PyStatus:
PyOS_AfterFork_Child() is now responsible to handle errors.

  • Move _PySignal_AfterFork() to the internal C API
  • Add #ifdef HAVE_FORK on _PyGILState_Reinit(), _PySignal_AfterFork()
    and _PyInterpreterState_DeleteExceptMain().

PyOS_AfterFork_Child() helper functions now return a PyStatus:
PyOS_AfterFork_Child() is now responsible to handle errors.

* Move _PySignal_AfterFork() to the internal C API
* Add #ifdef HAVE_FORK on _PyGILState_Reinit(), _PySignal_AfterFork()
  and _PyInterpreterState_DeleteExceptMain().
@vstinner vstinner merged commit 26881c8 into python:master Jun 2, 2020
4 checks passed
@vstinner vstinner deleted the atfork_status branch Jun 2, 2020
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