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

[3.12] gh-104690 Disallow thread creation and fork at interpreter finalization (GH-104826)#105277

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
gpshead merged 1 commit intopython:3.12frommiss-islington:backport-ce558e6-3.12
Jun 4, 2023

Conversation

miss-islington
Copy link
Contributor

@miss-islingtonmiss-islington commentedJun 4, 2023
edited by github-actionsbot
Loading

Disallow thread creation and fork at interpreter finalization.

in the following functions, check if interpreter is finalizing and raiseRuntimeError with appropriate message:

  • _thread.start_new_thread and thusthreading
  • posix.fork
  • posix.fork1
  • posix.forkpty
  • _posixsubprocess.fork_exec when apreexec_fn= is supplied.

(cherry picked from commitce558e6)

Co-authored-by: chgnrdv52372310+chgnrdv@users.noreply.github.com
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smithgreg@krypto.org


📚 Documentation preview 📚:https://cpython-previews--105277.org.readthedocs.build/

…lization (pythonGH-104826)Disallow thread creation and fork at interpreter finalization.in the following functions, check if interpreter is finalizing and raise `RuntimeError` with appropriate message:* `_thread.start_new_thread` and thus `threading`* `posix.fork`* `posix.fork1`* `posix.forkpty`* `_posixsubprocess.fork_exec` when a `preexec_fn=` is supplied.---------(cherry picked from commitce558e6)Co-authored-by: chgnrdv <52372310+chgnrdv@users.noreply.github.com>Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>Co-authored-by: Gregory P. Smith <greg@krypto.org>
@gpsheadgpsheadenabled auto-merge (squash)June 4, 2023 04:09
@gpsheadgpshead self-assigned thisJun 4, 2023
@gpsheadgpshead merged commitc7a9d96 intopython:3.12Jun 4, 2023
@miss-islingtonmiss-islington deleted the backport-ce558e6-3.12 branchJune 4, 2023 04:32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

Assignees

@gpsheadgpshead

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@miss-islington@gpshead@bedevere-bot@chgnrdv

[8]ページ先頭

©2009-2025 Movatter.jp