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-76327: freeze_support for non-Windows platforms#104607

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

Open
zetaloop wants to merge5 commits intopython:main
base:main
Choose a base branch
Loading
fromzetaloop:multiprocessing-freeze-suppport

Conversation

zetaloop
Copy link

@zetaloopzetaloop commentedMay 18, 2023
edited
Loading

gh-76327: freeze_support for non-Windows platforms

This is a brief fix for the multiprocessing frozen executable infinite loop issue on non-Windows platform.#76327
And thefreeze_support patch was exactly the same patch fromPyInstaller, which already worked for them.

This patch does not influencePyInstaller.
However, this patch will enablecx_freeze or other similar tools to build multiprocessing apps for Linux and Mac.


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

marcelotduarte reacted with rocket emoji
@bedevere-bot
Copy link

Most changes to Pythonrequire a NEWS entry.

Please add it using theblurb_it web app or theblurb command-line tool.

@ghost
Copy link

ghost commentedMay 18, 2023
edited by ghost
Loading

All commit authors signed the Contributor License Agreement.
CLA signed

@zetaloop
Copy link
Author

Backport needed.

@arhadthedevarhadthedev added the needs backport to 3.11only security fixes labelMay 20, 2023
@zetaloop
Copy link
Author

Tests done.
Windows 11 (Python 3.11.1):PyInstaller✔️cx_freeze✔️py2exe✔️
WSL Ubuntu 22.04 (Python 3.10.6):PyInstaller✔️cx_freeze✔️

Note: if we don't modifymuliprocessing,cx_freeze on Linux will create an app with terrible infinite loop.

import multiprocessingdef worker():    print('Worker')if __name__ == '__main__':    multiprocessing.freeze_support()    multiprocessing.set_start_method('spawn')    p = multiprocessing.Process(target=worker)    p.start()

@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA signed

@serhiy-storchakaserhiy-storchaka added the needs backport to 3.14bugs and security fixes labelMay 8, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@1st11st1Awaiting requested review from 1st1

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@zetaloop@bedevere-bot@serhiy-storchaka@arhadthedev@tomasr8

[8]ページ先頭

©2009-2025 Movatter.jp