Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

gh-110036: multiprocessing Popen.terminate() catches PermissionError#110037

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:mp_popen_terminate
Sep 29, 2023

Conversation

@vstinner
Copy link
Member

@vstinnervstinner commentedSep 28, 2023
edited by bedevere-appbot
Loading

On Windows, multiprocessing Popen.terminate() now catchs PermissionError and get the process exit code. If the process is still running, raise again the PermissionError. Otherwise, the process terminated as expected: store its exit code.

…rrorOn Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.
@vstinnervstinner added awaiting review 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelsSep 28, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@vstinner for commit0ed6e0b 🤖

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelSep 28, 2023
@AlexWaygoodAlexWaygood changed the titlegh-110036: multiprocessing Popen.terminate() catchs PermissionErrorgh-110036: multiprocessing Popen.terminate() catches PermissionErrorSep 28, 2023
@vstinner
Copy link
MemberAuthor

buildbot/ARM Raspbian PR

It failed with:FAIL: test_wait_integer (test.test_multiprocessing_spawn.test_misc.TestWait.test_wait_integer).

Well, that's unrelated, my code should be specific to Windows.

FAIL: test_wait_integer (test.test_multiprocessing_spawn.test_misc.TestWait.test_wait_integer)----------------------------------------------------------------------Traceback (most recent call last):  File "/var/lib/buildbot/workers/pull_request.gps-raspbian.nondebug/build/Lib/test/_test_multiprocessing.py", line 5038, in test_wait_integer    self.assertTrue(sem.acquire(timeout=20))AssertionError: False is not true

@vstinnervstinner merged commitbd4518c intopython:mainSep 29, 2023
@vstinnervstinner deleted the mp_popen_terminate branchSeptember 29, 2023 00:41
@miss-islington
Copy link
Contributor

Thanks@vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 29, 2023
…Error (pythonGH-110037)On Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.(cherry picked from commitbd4518c)Co-authored-by: Victor Stinner <vstinner@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestSep 29, 2023
…Error (pythonGH-110037)On Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.(cherry picked from commitbd4518c)Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app
Copy link

GH-110064 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelSep 29, 2023
@bedevere-app
Copy link

GH-110065 is a backport of this pull request to the3.11 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.11only security fixes labelSep 29, 2023
vstinner added a commit that referenced this pull requestSep 29, 2023
…nError (GH-110037) (#110065)gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037)On Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.(cherry picked from commitbd4518c)Co-authored-by: Victor Stinner <vstinner@python.org>
Yhg1s pushed a commit that referenced this pull requestOct 2, 2023
…nError (GH-110037) (#110064)gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037)On Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.(cherry picked from commitbd4518c)Co-authored-by: Victor Stinner <vstinner@python.org>
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…Error (python#110037)On Windows, multiprocessing Popen.terminate() now catchsPermissionError and get the process exit code. If the process isstill running, raise again the PermissionError. Otherwise, theprocess terminated as expected: store its exit code.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@vstinner@bedevere-bot@miss-islington

[8]ページ先頭

©2009-2025 Movatter.jp