René's URL Explorer Experiment


Title: bpo-32146: multiprocessing freeze_support needed outside win32 by bbayles · Pull Request #5195 · python/cpython · GitHub

Open Graph Title: bpo-32146: multiprocessing freeze_support needed outside win32 by bbayles · Pull Request #5195 · python/cpython

X Title: bpo-32146: multiprocessing freeze_support needed outside win32 by bbayles · Pull Request #5195 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: This PR un-breaks "frozen" executables (e.g., those produced by PyInstaller or cx_Freeze that (a) run on Unix, and (b) use multiprocessing, and (c) use the spawn or forkserver start metho...

X Description: This PR un-breaks "frozen" executables (e.g., those produced by PyInstaller or cx_Freeze that (a) run on Unix, and (b) use multiprocessing, and (c) use the spawn or forkserver sta...

Opengraph URL: https://github.com/python/cpython/pull/5195

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:78c4d3b3-28e5-1c9c-29c7-ba73d3bf112e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7E0:A73B:4808BA:617C7C:6A4C26FA
html-safe-nonce0cfdf951d16f6ae050ddab0a59e133d47eafe5fe9cc22c03b742bf83bc2e50da
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0UwOkE3M0I6NDgwOEJBOjYxN0M3Qzo2QTRDMjZGQSIsInZpc2l0b3JfaWQiOiIxNzA0MjQ5NDU4Njk3MTg1MDE4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac7252ddab5d841ff0d0db45ba8d2e37f2cbbaad561c6fd93f0d0e45d9785a793c
hovercard-subject-tagpull_request:163028603
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/5195/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/defdea472551bdd3af0cc8faaee64b69907903258c112f9639e599813422bb47/python/cpython/pull/5195
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/defdea472551bdd3af0cc8faaee64b69907903258c112f9639e599813422bb47/python/cpython/pull/5195
og:image:altThis PR un-breaks "frozen" executables (e.g., those produced by PyInstaller or cx_Freeze that (a) run on Unix, and (b) use multiprocessing, and (c) use the spawn or forkserver start metho...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebbayles
hostnamegithub.com
expected-hostnamegithub.com
None1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9ee13484b32cf23e15fde191da4c9aa47d41201c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/5195#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5195
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5195
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/5195
Reloadhttps://github.com/python/cpython/pull/5195
Reloadhttps://github.com/python/cpython/pull/5195
Please reload this pagehttps://github.com/python/cpython/pull/5195
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/5195
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 34.8k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.6k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
bbayleshttps://github.com/bbayles
python:masterhttps://github.com/python/cpython/tree/master
bbayles:unix-freezesupport-3.7https://github.com/bbayles/cpython/tree/unix-freezesupport-3.7
Conversationhttps://github.com/python/cpython/pull/5195
Commits15 (15)https://github.com/python/cpython/pull/5195/commits
Checkshttps://github.com/python/cpython/pull/5195/checks
Files changedhttps://github.com/python/cpython/pull/5195/files
bpo-32146: multiprocessing freeze_support needed outside win32https://github.com/python/cpython/pull/5195#top
bbayleshttps://github.com/bbayles
python:masterhttps://github.com/python/cpython/tree/master
bbayles:unix-freezesupport-3.7https://github.com/bbayles/cpython/tree/unix-freezesupport-3.7
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jan 15, 2018https://github.com/python/cpython/pull/5195#issue-288698508
Please reload this pagehttps://github.com/python/cpython/pull/5195
PyInstallerhttp://www.pyinstaller.org/
cx_Freezehttp://cx-freeze.readthedocs.io/en/latest/
start methodshttps://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
this dissectionhttps://stackoverflow.com/a/47360452/353839
the issuehttps://bugs.python.org/issue32146#msg309886
herehttps://github.com/python/cpython/blob/bd73e72b4a9f019be514954b1d40e64dc3a5e81c/Lib/multiprocessing/spawn.py#L67-L75
--multiprocessing-forkhttps://github.com/python/cpython/blob/bd73e72b4a9f019be514954b1d40e64dc3a5e81c/Lib/multiprocessing/spawn.py#L56
https://bugs.python.org/issue32146https://bugs.python.org/issue32146
Please reload this pagehttps://github.com/python/cpython/pull/5195
bbayleshttps://github.com/bbayles
January 14, 2018 08:44https://github.com/python/cpython/pull/5195#commits-pushed-7b90728
https://github.com/bbayles
bpo-32146: freeze_support can apply to non-Windows platforms alsohttps://github.com/python/cpython/pull/5195/commits/7b907281ea1a90391e52b391f336fac33fd042cf
7b90728https://github.com/python/cpython/pull/5195/commits/7b907281ea1a90391e52b391f336fac33fd042cf
https://github.com/bbayles
bpo-32146: Provisional fix for non-Windows executables (spawn)https://github.com/python/cpython/pull/5195/commits/b0d30bc48c1447356031742b44d95eaa1db17af3
b0d30bchttps://github.com/python/cpython/pull/5195/commits/b0d30bc48c1447356031742b44d95eaa1db17af3
https://github.com/bbayles
bpo-32146: Provisional fix for non-Windows executables (forkserver)https://github.com/python/cpython/pull/5195/commits/8baf4e4fc686c8e35d4e702bb78812453fe35077
8baf4e4https://github.com/python/cpython/pull/5195/commits/8baf4e4fc686c8e35d4e702bb78812453fe35077
https://github.com/bbayles
bpo-32146: Move commandline checks to separate functionshttps://github.com/python/cpython/pull/5195/commits/64456d9f7be5b0824bea9d7f36fe359042c733ac
64456d9https://github.com/python/cpython/pull/5195/commits/64456d9f7be5b0824bea9d7f36fe359042c733ac
https://github.com/bbayles
bpo-32146: Add Misc/NEWS entry for freeze_support enhancementshttps://github.com/python/cpython/pull/5195/commits/748c2f1cc56c235b2ac0ee68286b87a3aa5abd9d
748c2f1https://github.com/python/cpython/pull/5195/commits/748c2f1cc56c235b2ac0ee68286b87a3aa5abd9d
https://github.com/bbayles
bpo-32146: Use dummy --multiprocessing- command line argumentshttps://github.com/python/cpython/pull/5195/commits/3a0964ae759f181371d4520e0984cda71beea05c
3a0964ahttps://github.com/python/cpython/pull/5195/commits/3a0964ae759f181371d4520e0984cda71beea05c
https://github.com/bbayles
bpo-32146: Only use special command line arguments when frozenhttps://github.com/python/cpython/pull/5195/commits/7b49c0078945df9bc492c61792e5c7a97c42e7c3
7b49c00https://github.com/python/cpython/pull/5195/commits/7b49c0078945df9bc492c61792e5c7a97c42e7c3
https://github.com/bbayles
bpo-32146: Factor out command line manipulation for testinghttps://github.com/python/cpython/pull/5195/commits/26a63138cd40d5d447f57fdadbf4927b532f0e12
26a6313https://github.com/python/cpython/pull/5195/commits/26a63138cd40d5d447f57fdadbf4927b532f0e12
https://github.com/bbayles
bpo-32146: Add note to docs about freeze_support on Unixhttps://github.com/python/cpython/pull/5195/commits/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2
afdd553https://github.com/python/cpython/pull/5195/commits/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2
https://github.com/the-knights-who-say-ni
the-knights-who-say-nihttps://github.com/the-knights-who-say-ni
CLA signed https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22CLA%20signed%22
Jan 15, 2018https://github.com/python/cpython/pull/5195#event-1424950938
https://github.com/bedevere-bot
bedevere-bothttps://github.com/bedevere-bot
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Jan 15, 2018https://github.com/python/cpython/pull/5195#event-1424950939
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jan 15, 2018 https://github.com/python/cpython/pull/5195#pullrequestreview-88919694
View reviewed changes https://github.com/python/cpython/pull/5195/files/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2
Lib/multiprocessing/spawn.pyhttps://github.com/python/cpython/pull/5195/files/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2#diff-3612bea8104783e1f08635ddc3244cdde48e5b3b1339d4357abe5b78807834bc
bbayleshttps://github.com/bbayles
Jan 15, 2018https://github.com/python/cpython/pull/5195#discussion_r161603852
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
semaphore_tracker.SemaphoreTracker.ensure_runninghttps://github.com/python/cpython/blob/cb064fc2321ce8673fe365e9ef60445a27657f54/Lib/multiprocessing/semaphore_tracker.py#L63-L70
semaphore_tracker.mainhttps://github.com/python/cpython/blob/cb064fc2321ce8673fe365e9ef60445a27657f54/Lib/multiprocessing/semaphore_tracker.py#L108
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jan 15, 2018 https://github.com/python/cpython/pull/5195#pullrequestreview-88920924
View reviewed changes https://github.com/python/cpython/pull/5195/files/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2
Lib/multiprocessing/spawn.pyhttps://github.com/python/cpython/pull/5195/files/afdd5535fb92e19d3a77a8c6bc475b695aa0d4b2#diff-3612bea8104783e1f08635ddc3244cdde48e5b3b1339d4357abe5b78807834bc
bbayleshttps://github.com/bbayles
Jan 15, 2018https://github.com/python/cpython/pull/5195#discussion_r161604945
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
forkserver.ForkServer.ensure_runninghttps://github.com/python/cpython/blob/cb064fc2321ce8673fe365e9ef60445a27657f54/Lib/multiprocessing/forkserver.py#L106-L128
forkserver.mainhttps://github.com/python/cpython/blob/cb064fc2321ce8673fe365e9ef60445a27657f54/Lib/multiprocessing/forkserver.py#L146
Please reload this pagehttps://github.com/python/cpython/pull/5195
bbayleshttps://github.com/bbayles
Jan 16, 2018https://github.com/python/cpython/pull/5195#discussion_r161649201
Please reload this pagehttps://github.com/python/cpython/pull/5195
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/5195
bbayleshttps://github.com/bbayles
January 15, 2018 14:03https://github.com/python/cpython/pull/5195#commits-pushed-d72742d
https://github.com/bbayles
bpo-32146: Add missing backtickhttps://github.com/python/cpython/pull/5195/commits/d72742dea5d50032eaf636193e5956cd07873d82
d72742dhttps://github.com/python/cpython/pull/5195/commits/d72742dea5d50032eaf636193e5956cd07873d82
https://github.com/bbayles
bpo-32146: Fix and add test for extra preload moduleshttps://github.com/python/cpython/pull/5195/commits/97e6a9d748902353cfb4e730c471ff05810ca160
97e6a9dhttps://github.com/python/cpython/pull/5195/commits/97e6a9d748902353cfb4e730c471ff05810ca160
https://github.com/bbayles
bpo-32146: Fix up commentshttps://github.com/python/cpython/pull/5195/commits/f0ca86b5fb59d3cd84dd2f612103823c90f12fca
f0ca86bhttps://github.com/python/cpython/pull/5195/commits/f0ca86b5fb59d3cd84dd2f612103823c90f12fca
https://github.com/bbayles
bbayleshttps://github.com/bbayles
1st1https://github.com/1st1
code ownerhttps://github.com/python/cpython/blob/c65ef772c335324deb03626cc447b89987781f27/.github/CODEOWNERS#L11
January 29, 2018 20:03https://github.com/python/cpython/pull/5195#event-1447133606
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jan 29, 2018https://github.com/python/cpython/pull/5195#issuecomment-361368843
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/1st1
1st1https://github.com/1st1
January 29, 2018 20:04https://github.com/python/cpython/pull/5195#event-1447135331
https://github.com/1st1
1st1https://github.com/1st1
Jan 29, 2018https://github.com/python/cpython/pull/5195#issuecomment-361369347
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Feb 24, 2018 https://github.com/python/cpython/pull/5195#ref-pullrequest-299945219
bpo-32146: Add documentation about frozen executables on Unix #5850 https://github.com/python/cpython/pull/5850
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
Jun 8, 2018https://github.com/python/cpython/pull/5195#issuecomment-395859520
@appliohttps://github.com/applio
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jun 8, 2018https://github.com/python/cpython/pull/5195#issuecomment-395896062
#5850https://github.com/python/cpython/pull/5850
Please reload this pagehttps://github.com/python/cpython/pull/5195
bbayleshttps://github.com/bbayles
July 13, 2018 14:19https://github.com/python/cpython/pull/5195#commits-pushed-fce2afc
https://github.com/bbayles
Merge branch 'master' into unix-freezesupport-3.7https://github.com/python/cpython/pull/5195/commits/fce2afccfdb1146759014723483641f1379cb8ac
fce2afchttps://github.com/python/cpython/pull/5195/commits/fce2afccfdb1146759014723483641f1379cb8ac
https://github.com/bbayles
Merge remote-tracking branch 'upstream/master' into unix-freezesuppor…https://github.com/python/cpython/pull/5195/commits/5a8e3c8b866e9aba62b41341933ea1e7e291f8eb
5a8e3c8https://github.com/python/cpython/pull/5195/commits/5a8e3c8b866e9aba62b41341933ea1e7e291f8eb
https://github.com/vstinner
vstinnerhttps://github.com/vstinner
Jan 10, 2019https://github.com/python/cpython/pull/5195#issuecomment-453192672
@pitrouhttps://github.com/pitrou
https://bugs.python.org/issue32146https://bugs.python.org/issue32146
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/bbayles
Merge branch 'master' into unix-freezesupport-3.7https://github.com/python/cpython/pull/5195/commits/23e9c64d6570a558fe99c417d28c7413af1522ee
23e9c64https://github.com/python/cpython/pull/5195/commits/23e9c64d6570a558fe99c417d28c7413af1522ee
https://github.com/bbayles
bbayleshttps://github.com/bbayles
Jul 8, 2020https://github.com/python/cpython/pull/5195#event-3522961007
https://github.com/python/cpython/pull/5195
dancolhttps://github.com/python/cpython/pull/5195
Apr 10, 2022 https://github.com/python/cpython/pull/5195#ref-issue-1198983347
multiprocessing freeze_support needed outside win32 #76327 https://github.com/python/cpython/issues/76327
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F5195
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Please reload this pagehttps://github.com/python/cpython/pull/5195
https://github.com/bbayles
https://github.com/1st1
https://github.com/ned-deily
https://github.com/vstinner
https://github.com/the-knights-who-say-ni
https://github.com/bedevere-bot
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.