René's URL Explorer Experiment


Title: gh-153711: Add runtime guards for dup3 & pipe2 by encukou · Pull Request #155174 · python/cpython · GitHub

Open Graph Title: gh-153711: Add runtime guards for dup3 & pipe2 by encukou · Pull Request #155174 · python/cpython

X Title: gh-153711: Add runtime guards for dup3 & pipe2 by encukou · Pull Request #155174 · python/cpython

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

Open Graph Description: This is based on GH-154718 -- I made some changes, then checked @Vamsi-klu's closed PR and realized the work is already nearly done. So, credit where it's due. This is for macOS only; exten...

X Description: This is based on GH-154718 -- I made some changes, then checked @Vamsi-klu's closed PR and realized the work is already nearly done. So, credit where it's due. This is for macOS onl...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:d204b52e-753f-1f79-1e0c-043c6438a6d4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FAA:3FA18D:9EDC0:DC0B8:6AFDAA5B
html-safe-nonce67aa06dc3c4b4a3083af551a3774afafca2be7003e66670fd8294a6f7bb54d66
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkFBOjNGQTE4RDo5RURDMDpEQzBCODo2QUZEQUE1QiIsInZpc2l0b3JfaWQiOiIyODIxNTk0OTc2MTA4Nzg0MjE5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac0bb93717e2304b40ffc535595d0c4b3746b1a328e15a64de18c19c2190737731
hovercard-subject-tagpull_request:4203520535
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/155174/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cc8a0b78c942d36bf9975cc2ac6184318571ed7483dd67ad8d9ab5d1d1bfe1c8/python/cpython/pull/155174
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cc8a0b78c942d36bf9975cc2ac6184318571ed7483dd67ad8d9ab5d1d1bfe1c8/python/cpython/pull/155174
og:image:altThis is based on GH-154718 -- I made some changes, then checked @Vamsi-klu's closed PR and realized the work is already nearly done. So, credit where it's due. This is for macOS only; exten...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameencukou
hostnamegithub.com
expected-hostnamegithub.com
Nonebc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea
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
release0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/155174#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F155174
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F155174
Sign uphttps://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/155174
Reloadhttps://github.com/python/cpython/pull/155174
Reloadhttps://github.com/python/cpython/pull/155174
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
encukou:dup3-pipe2https://github.com/encukou/cpython/tree/dup3-pipe2
Conversationhttps://github.com/python/cpython/pull/155174
Commits6 (6)https://github.com/python/cpython/pull/155174/commits
Checkshttps://github.com/python/cpython/pull/155174/checks
Files changedhttps://github.com/python/cpython/pull/155174/files
gh-153711: Add runtime guards for dup3 & pipe2https://github.com/python/cpython/pull/155174#top
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
encukou:dup3-pipe2https://github.com/encukou/cpython/tree/dup3-pipe2
https://github.com/encukou
encukouhttps://github.com/encukou
Aug 4, 2026https://github.com/python/cpython/pull/155174#issue-5060667561
Please reload this pagehttps://github.com/python/cpython/pull/155174
GH-154718https://github.com/python/cpython/pull/154718
@Vamsi-kluhttps://github.com/Vamsi-klu
@ned-deilyhttps://github.com/ned-deily
macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27 #153711https://github.com/python/cpython/issues/153711
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/encukou
https://github.com/Vamsi-klu
Add runtime guards for dup3 & pipe2https://github.com/python/cpython/pull/155174/commits/03077d5fc3103ccc6cb03a02d14b5e63ac6be06c
03077d5https://github.com/python/cpython/pull/155174/commits/03077d5fc3103ccc6cb03a02d14b5e63ac6be06c
pythonGH-154718https://github.com/python/cpython/pull/154718
https://github.com/encukou
encukouhttps://github.com/encukou
ned-deilyhttps://github.com/ned-deily
August 4, 2026 12:52https://github.com/python/cpython/pull/155174#event-28949588614
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 4, 2026https://github.com/python/cpython/pull/155174#event-28949594660
https://github.com/encukou
encukouhttps://github.com/encukou
Aug 4, 2026https://github.com/python/cpython/pull/155174#event-28949609202
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 4, 2026 https://github.com/python/cpython/pull/155174#ref-issue-4885791180
macOS: Test availability for dup3() and pipe2() to prevent crashes when building against Xcode 27 #153711 https://github.com/python/cpython/issues/153711
https://github.com/apps/read-the-docs-community
read-the-docs-communityhttps://github.com/apps/read-the-docs-community
Aug 4, 2026https://github.com/python/cpython/pull/155174#issuecomment-5179438905
Please reload this pagehttps://github.com/python/cpython/pull/155174
cpython-previewshttps://app.readthedocs.org/projects/cpython-previews/
#33919133https://app.readthedocs.org/projects/cpython-previews/builds/33919133/
c36cca8https://github.com/python/cpython/commit/c36cca8672340f99e5fdfd036208db3b8eea1b4f
mainhttps://cpython-previews.readthedocs.io/en/main/
ef0affbhttps://github.com/python/cpython/commit/ef0affbf7c1cb8bbc136b65cc0f02985f8c568b5
  🔍 Preview build   https://cpython-previews--155174.org.readthedocs.build/en/155174/
library/os.htmlhttps://cpython-previews--155174.org.readthedocs.build/en/155174/library/os.html
whatsnew/changelog.htmlhttps://cpython-previews--155174.org.readthedocs.build/en/155174/whatsnew/changelog.html
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/encukou
Add entry for c-analyzerhttps://github.com/python/cpython/pull/155174/commits/5ba1a2093ecce0859b293f1ca637d80bb0999da8
5ba1a20https://github.com/python/cpython/pull/155174/commits/5ba1a2093ecce0859b293f1ca637d80bb0999da8
https://github.com/encukou
encukouhttps://github.com/encukou
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
code ownerhttps://github.com/python/cpython/blob/8440a6a4651f93ecd1c7768ffb2c735c5b9fb984/.github/CODEOWNERS#L129
August 4, 2026 13:33https://github.com/python/cpython/pull/155174#event-28951907202
encukouhttps://github.com/encukou
August 4, 2026 16:24https://github.com/python/cpython/pull/155174#commits-pushed-1126ba4
https://github.com/encukou
Use relaxed atomics for thread safetyhttps://github.com/python/cpython/pull/155174/commits/1126ba4ec1d255e60b796e60e216dcee9ae756f0
1126ba4https://github.com/python/cpython/pull/155174/commits/1126ba4ec1d255e60b796e60e216dcee9ae756f0
https://github.com/encukou
Update variable nameshttps://github.com/python/cpython/pull/155174/commits/9edc83d42765bad4c0deb8c45b7e8fc715f760d6
9edc83dhttps://github.com/python/cpython/pull/155174/commits/9edc83d42765bad4c0deb8c45b7e8fc715f760d6
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
Aug 5, 2026 https://github.com/python/cpython/pull/155174#pullrequestreview-4860819540
View reviewed changes https://github.com/python/cpython/pull/155174/files/9edc83d42765bad4c0deb8c45b7e8fc715f760d6
ned-deilyhttps://github.com/ned-deily
https://github.com/python/cpython/pull/155174#pullrequestreview-4860819540
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/155174
Modules/posixmodule.chttps://github.com/python/cpython/pull/155174/files/9edc83d42765bad4c0deb8c45b7e8fc715f760d6#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
Please reload this pagehttps://github.com/python/cpython/pull/155174
Modules/posixmodule.chttps://github.com/python/cpython/pull/155174/files/9edc83d42765bad4c0deb8c45b7e8fc715f760d6#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28987721121
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 5, 2026https://github.com/python/cpython/pull/155174#issuecomment-5187459877
Please reload this pagehttps://github.com/python/cpython/pull/155174
ned-deilyhttps://github.com/ned-deily
August 5, 2026 00:17https://github.com/python/cpython/pull/155174#commits-pushed-0c40dcb
https://github.com/ned-deily
Fix legacy ifdef nameshttps://github.com/python/cpython/pull/155174/commits/0c40dcbb486a3a044e345d2e2f16f8d132eb7ef9
0c40dcbhttps://github.com/python/cpython/pull/155174/commits/0c40dcbb486a3a044e345d2e2f16f8d132eb7ef9
https://github.com/ned-deily
Merge branch 'main' into dup3-pipe2https://github.com/python/cpython/pull/155174/commits/c36cca8672340f99e5fdfd036208db3b8eea1b4f
c36cca8https://github.com/python/cpython/pull/155174/commits/c36cca8672340f99e5fdfd036208db3b8eea1b4f
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
awaiting changes https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20changes%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28987953965
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
Aug 5, 2026 https://github.com/python/cpython/pull/155174#pullrequestreview-4860963817
View reviewed changes https://github.com/python/cpython/pull/155174/files/c36cca8672340f99e5fdfd036208db3b8eea1b4f
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28987964934
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28990553378
https://github.com/ned-deily
ned-deilyhttps://github.com/ned-deily
Aug 5, 2026https://github.com/python/cpython/pull/155174#issuecomment-5188050413
@encukouhttps://github.com/encukou
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/hugovk
hugovkhttps://github.com/hugovk
f33a5f5https://github.com/python/cpython/commit/f33a5f5261652d29d185aff10854b72d7c90f199
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28990938969
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Aug 5, 2026https://github.com/python/cpython/pull/155174#issuecomment-5188091986
@encukouhttps://github.com/encukou
@hugovkhttps://github.com/hugovk
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28990940789
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Aug 5, 2026https://github.com/python/cpython/pull/155174#issuecomment-5188093388
GH-155202https://github.com/python/cpython/pull/155202
3.15 branchhttps://github.com/python/cpython/tree/3.15
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.15 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.15%22
Aug 5, 2026https://github.com/python/cpython/pull/155174#event-28990948839
hugovkhttps://github.com/hugovk
Aug 5, 2026 https://github.com/python/cpython/pull/155174#ref-commit-a7f3e56
https://github.com/miss-islington
https://github.com/encukou
https://github.com/Vamsi-klu
https://github.com/ned-deily
[3.15]https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
gh-153711https://github.com/python/cpython/issues/153711
: Add runtime guards for dup3 & pipe2 (https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
GH-155174https://github.com/python/cpython/pull/155174
) (https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
#1…https://github.com/python/cpython/pull/155202
a7f3e56https://github.com/python/cpython/commit/a7f3e56820fca0fdd0d13828cd68ef874ddcece2
…55202https://github.com/python/cpython/pull/155202
gh-153711https://github.com/python/cpython/issues/153711
GH-155174https://github.com/python/cpython/pull/155174
f33a5f5https://github.com/python/cpython/commit/f33a5f5261652d29d185aff10854b72d7c90f199
mbeijenhttps://github.com/mbeijen
Aug 14, 2026 https://github.com/python/cpython/pull/155174#ref-commit-6390c04
https://github.com/encukou
https://github.com/Vamsi-klu
https://github.com/ned-deily
https://github.com/mbeijen
pythongh-153711https://github.com/python/cpython/issues/153711
: Add runtime guards for dup3 & pipe2 (https://github.com/mbeijen/cpython/commit/6390c0499aad613e2713ead2dd5c9fffbd922af6
python#155174https://github.com/python/cpython/pull/155174
)https://github.com/mbeijen/cpython/commit/6390c0499aad613e2713ead2dd5c9fffbd922af6
6390c04https://github.com/mbeijen/cpython/commit/6390c0499aad613e2713ead2dd5c9fffbd922af6
https://github.com/blankmeta
blankmetahttps://github.com/blankmeta
Nov 8, 2026 https://github.com/python/cpython/pull/155174#ref-pullrequest-6272211977
posix: fix HTTP crashes on macOS 26 with the Apple 27 SDK OZBM/MacLC#5 https://github.com/OZBM/MacLC/pull/5
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%2F155174
https://github.com/ned-deily
ned-deily https://github.com/ned-deily
https://github.com/python/cpython/pull/155174/files/c36cca8672340f99e5fdfd036208db3b8eea1b4f
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
Please reload this pagehttps://github.com/python/cpython/pull/155174
Please reload this pagehttps://github.com/python/cpython/pull/155174
https://github.com/encukou
https://github.com/ned-deily
https://github.com/hugovk
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.