René's URL Explorer Experiment


Title: Align signal wakeup errors and delivery with Python 3.15 by youknowdot · Pull Request #9199 · RustPython/RustPython · GitHub

Open Graph Title: Align signal wakeup errors and delivery with Python 3.15 by youknowdot · Pull Request #9199 · RustPython/RustPython

X Title: Align signal wakeup errors and delivery with Python 3.15 by youknowdot · Pull Request #9199 · RustPython/RustPython

Description: Summary Independent main-based signal-wakeup closure from #8954, following Modules/signalmodule.c of Python 3.15: run_signal saves and restores errno around trip_signal, as signal_handler does. Wakeup-fd writes go through the new crt_fd::write_noraise (_Py_write_noraise): EINTR is retried and the errno is returned without allocating. On Windows it shares the nonblocking-pipe ENOSPC handling with _write. Write errors (and Windows send errors) are stored in bounded pending slots and honor warn_on_full_buffer on all platforms. They are reported only by the main interpreter's main thread, after Python signal handlers and VM pending calls, matching the handle_signals → make_pending_calls order of _Py_HandlePending. When a Python signal handler or a pending call raises, the eval breaker is re-armed so the remaining signals and pending wakeup errors are handled at the next check. Process signals are left pending for the main interpreter's main thread (_Py_ThreadCanHandleSignals). _set_thread_local_invalid_parameter_handler is declared with a nullable Option, so a NULL previous handler is restored without UB. test_signal is synced with CPython v3.15.0 (force_not_colorized on test_wakeup_write_error); existing RustPython markers are kept. Validation test_signal passes (run=57, skipped=26) on macOS. test_wakeup_write_error is skipped without _testcapi. Its body (EBADF reported inside captured_stderr before a raising handler's exception escapes) and full-buffer reporting with default/True/False warn_on_full_buffer produce the same output on RustPython and CPython 3.15.0rc2. Workspace tests, CAPI tests (123 passed, 4 ignored) and both Clippy scopes pass. rustpython-host_env Clippy passes for x86_64-pc-windows-msvc; Windows runtime behavior relies on CI. AI assistance: OpenAI Codex (model version unavailable) prepared the initial split; Claude Code (claude-opus-5-5) reworked it against signalmodule.c. 🤖 Generated with Claude Code

Open Graph Description: Summary Independent main-based signal-wakeup closure from #8954, following Modules/signalmodule.c of Python 3.15: run_signal saves and restores errno around trip_signal, as signal_handler does. Wa...

X Description: Summary Independent main-based signal-wakeup closure from #8954, following Modules/signalmodule.c of Python 3.15: run_signal saves and restores errno around trip_signal, as signal_handler does. Wa...

Opengraph URL: https://github.com/RustPython/RustPython/pull/9199

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ee3cc0ef-0d8e-2ff9-6653-df67f0f86a84
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAF28:2A7C1C:15F0B87:1D04E4C:6B01FE8D
html-safe-nonce001fb5a9a66687f1df7cc82b3ee052109fe97751e11e8ebad86061759898901d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjI4OjJBN0MxQzoxNUYwQjg3OjFEMDRFNEM6NkIwMUZFOEQiLCJ2aXNpdG9yX2lkIjoiMTIxNjQwNzgyNzQ4MDk2ODg0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb251ea533b32da92a02d7eb67b99242d6663249513b396d20f37bfba85e49446
hovercard-subject-tagpull_request:4916211973
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/9199/files
twitter:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/336763669?s=400&v=4
og:image:altSummary Independent main-based signal-wakeup closure from #8954, following Modules/signalmodule.c of Python 3.15: run_signal saves and restores errno around trip_signal, as signal_handler does. Wa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/RustPython/RustPython/pull/9199/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F9199%2Ffiles
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%2FRustPython%2FRustPython%2Fpull%2F9199%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython
Reloadhttps://github.com/RustPython/RustPython/pull/9199/files
Reloadhttps://github.com/RustPython/RustPython/pull/9199/files
Reloadhttps://github.com/RustPython/RustPython/pull/9199/files
RustPythonhttps://github.com/RustPython
RustPythonhttps://github.com/RustPython/RustPython
Codehttps://github.com/RustPython/RustPython
Issues195 (195)https://github.com/RustPython/RustPython/issues
Pull requests133 (133)https://github.com/RustPython/RustPython/pulls
Discussionshttps://github.com/RustPython/RustPython/discussions
Actionshttps://github.com/RustPython/RustPython/actions
Projectshttps://github.com/RustPython/RustPython/projects
Wikihttps://github.com/RustPython/RustPython/wiki
Security and qualityhttps://github.com/RustPython/RustPython/security
Insightshttps://github.com/RustPython/RustPython/insights
Sign up for GitHub https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
youknowonehttps://github.com/youknowone
RustPython:mainhttps://github.com/RustPython/RustPython/tree/main
youknowdot:split/signal-wakeup-315https://github.com/youknowdot/RustPython/tree/split/signal-wakeup-315
Conversation 8 https://github.com/RustPython/RustPython/pull/9199
Commits 5 https://github.com/RustPython/RustPython/pull/9199/commits
Checks 29 https://github.com/RustPython/RustPython/pull/9199/checks
Files changed https://github.com/RustPython/RustPython/pull/9199/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
Align signal wakeup errors and delivery with Python 3.15 https://github.com/RustPython/RustPython/pull/9199/files#top
Show all changes 5 commits https://github.com/RustPython/RustPython/pull/9199/files
86e4368 Align signal wakeup error handling with Python 3.15 youknowdot Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9199/commits/86e43685da76011d04ff72aba2921764c0998674
5da772c Preserve CRT error state during signal wakeup writes youknowdot Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9199/commits/5da772c7a1819c474dfae146b540810f47eff151
00fba93 Represent nullable Windows CRT parameter handlers safely youknowdot Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9199/commits/00fba934c47b80e2a7723dd8526e4fa11316a4bb
b46dcae Rework signal wakeup error delivery to follow signalmodule.c youknowone Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9199/commits/b46dcae55cf7c31049fcb0f7cb51cbbe42a9b4c3
1bb5aa8 Represent nullable Windows CRT parameter handlers as Option youknowone Oct 19, 2026 https://github.com/RustPython/RustPython/pull/9199/commits/1bb5aa8e0a48fd949a568433fc51a9c94df099c0
Clear filters https://github.com/RustPython/RustPython/pull/9199/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
test_signal.py https://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
crt_fd.rs https://github.com/RustPython/RustPython/pull/9199/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
macros.rs https://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
signal.rs https://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
signal.rs https://github.com/RustPython/RustPython/pull/9199/files#diff-8f647854e4313a46abb2732c90b0e631a66a98d32423bbe1f306db05ab4e72de
_signal.rs https://github.com/RustPython/RustPython/pull/9199/files#diff-277e8770c8f1721bb34a035e1cf3bbd5938fec26b3e6b71382cb89253e03bb86
Lib/test/test_signal.pyhttps://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
View file https://github.com/youknowdot/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/Lib/test/test_signal.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9199/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
https://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
https://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 20, 2026https://github.com/RustPython/RustPython/pull/9199/files#r4324345390
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
AGENTS.md:L280-L282https://github.com/RustPython/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/AGENTS.md#L280-L282
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
https://github.com/RustPython/RustPython/pull/9199/files#diff-d2af8fb561277f84d7a1c0274aca37955e9f515d0d73be58933abe191df1cca9
crates/host_env/src/crt_fd.rshttps://github.com/RustPython/RustPython/pull/9199/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
View file https://github.com/youknowdot/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/crates/host_env/src/crt_fd.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9199/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9199/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
https://github.com/RustPython/RustPython/pull/9199/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
https://github.com/RustPython/RustPython/pull/9199/files#diff-ff82b67fc4d8cf44a1248a541dbf04dca2c5554aaaaf76d169327f8930f004c4
crates/host_env/src/macros.rshttps://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
View file https://github.com/youknowdot/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/crates/host_env/src/macros.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9199/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
https://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
https://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
https://github.com/RustPython/RustPython/pull/9199/files#diff-68071810262e54a034fdbb9ce4b21d7a8a5399633ef80ba878b1a71ff2434850
crates/host_env/src/signal.rshttps://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
View file https://github.com/youknowdot/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/crates/host_env/src/signal.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9199/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
https://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
https://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
https://github.com/RustPython/RustPython/pull/9199/files#diff-d045575af8bb7b33909489ac214c0c4641f490f39f0c8724ab3e3135cf5e57d3
crates/vm/src/signal.rshttps://github.com/RustPython/RustPython/pull/9199/files#diff-8f647854e4313a46abb2732c90b0e631a66a98d32423bbe1f306db05ab4e72de
View file https://github.com/youknowdot/RustPython/blob/1bb5aa8e0a48fd949a568433fc51a9c94df099c0/crates/vm/src/signal.rs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/RustPython/RustPython/pull/9199/{{ revealButtonHref }}
https://github.com/RustPython/RustPython/pull/9199/files#diff-8f647854e4313a46abb2732c90b0e631a66a98d32423bbe1f306db05ab4e72de
chatgpt-codex-connectorhttps://github.com/apps/chatgpt-codex-connector
Oct 20, 2026https://github.com/RustPython/RustPython/pull/9199/files#r4324345383
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://camo.githubusercontent.com/a08bbb8a949f7033433a88444eeae385ff6a5e599d92f878fb05fa85707b7816/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50312d6f72616e67653f7374796c653d666c6174
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
https://github.com/RustPython/RustPython/pull/9199/files#diff-8f647854e4313a46abb2732c90b0e631a66a98d32423bbe1f306db05ab4e72de
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
Please reload this pagehttps://github.com/RustPython/RustPython/pull/9199/files
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.