-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-133744: Fix multiprocessing interrupt test: add an event #133746
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
Conversation
Add an event to synchronize the parent process with the child process: wait until the child process starts sleeping.
cc @gpshead @colesbury @pitrou Without this change, the SIGINT signal can be sent too early: in multiprocessing setup code. |
With this change, I can no longer reproduce the issue:
|
Since 2013, there was a workaround for this issue, using a simple sleep(1): commit 26f9268.
|
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
Sorry, @vstinner, I could not cleanly backport this to
|
…thonGH-133746) Add an event to synchronize the parent process with the child process: wait until the child process starts sleeping. (cherry picked from commit c2989b7) Co-authored-by: Victor Stinner <[email protected]>
GH-133916 is a backport of this pull request to the 3.14 branch. |
GH-133917 is a backport of this pull request to the 3.13 branch. |
…thon#133746) Add an event to synchronize the parent process with the child process: wait until the child process starts sleeping. (cherry picked from commit c2989b7)
Add an event to synchronize the parent process with the child process: wait until the child process starts sleeping.