| react-profiling | 0 |
| react-import-map | react,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-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:052771e6-e82c-1a82-a864-7f8c5967b70e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CA1E:182C25:720258:98A6BA:6B0039EC |
| html-safe-nonce | 9d055f52fe6b48c963a7654ccd859c11497d986d712147447aee10babb266fcd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTFFOjE4MkMyNTo3MjAyNTg6OThBNkJBOjZCMDAzOUVDIiwidmlzaXRvcl9pZCI6Ijc5MDI0NzUwODAzNTYwODQyMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 487c7fa5f490f954d0b5c10ec795aea4b23c987a0251246468c1c893b5cc9171 |
| hovercard-subject-tag | pull_request:4542116644 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/8721/files |
| twitter:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/69878?s=400&v=4 |
| og:image:alt | I did not use AI to write the code of this patch.
This PR follows our AI policy
Summary
Leftover after #8718. Rebased onto current main (including #8720).
select() always calls select(2), includ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/RustPython/RustPython/pull/8721/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8721%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F8721%2Ffiles |
| 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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=RustPython%2FRustPython |
| Reload | https://github.com/RustPython/RustPython/pull/8721/files |
| Reload | https://github.com/RustPython/RustPython/pull/8721/files |
| Reload | https://github.com/RustPython/RustPython/pull/8721/files |
| RustPython | https://github.com/RustPython |
| RustPython | https://github.com/RustPython/RustPython |
| Code | https://github.com/RustPython/RustPython |
| Issues195 (195) | https://github.com/RustPython/RustPython/issues |
| Pull requests144 (144) | https://github.com/RustPython/RustPython/pulls |
| Discussions | https://github.com/RustPython/RustPython/discussions |
| Actions | https://github.com/RustPython/RustPython/actions |
| Projects | https://github.com/RustPython/RustPython/projects |
| Wiki | https://github.com/RustPython/RustPython/wiki |
| Security and quality | https://github.com/RustPython/RustPython/security |
| Insights | https://github.com/RustPython/RustPython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose |
| youknowone | https://github.com/youknowone |
| RustPython:main | https://github.com/RustPython/RustPython/tree/main |
| youknowone:host-env-win-ffi | https://github.com/youknowone/RustPython/tree/host-env-win-ffi |
|
Conversation
40
| https://github.com/RustPython/RustPython/pull/8721 |
|
Commits
5
| https://github.com/RustPython/RustPython/pull/8721/commits |
|
Checks
30
| https://github.com/RustPython/RustPython/pull/8721/checks |
|
Files changed
| https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
|
Retry select/poll/fcntl on EINTR and add kqueue
| https://github.com/RustPython/RustPython/pull/8721/files#top |
|
Show all changes
5 commits
| https://github.com/RustPython/RustPython/pull/8721/files |
|
ca532d2
Retry select/poll/fcntl on EINTR
youknowone Sep 15, 2026
| https://github.com/RustPython/RustPython/pull/8721/commits/ca532d23059e1115bb33b7f14cc3fb059e07c522 |
|
23b392b
Add select.kqueue and select.kevent
youknowone Sep 15, 2026
| https://github.com/RustPython/RustPython/pull/8721/commits/23b392b6b79c8a03756c5bd05bef55afa36aedc2 |
|
5adc00a
Add login_tty and fix termios/syslog/mmap
youknowone Sep 15, 2026
| https://github.com/RustPython/RustPython/pull/8721/commits/5adc00aace478a8e0c1aa905ccca6142f3c4b68f |
|
8ee5f1f
Honor mmap trackfd on Unix
youknowone Sep 15, 2026
| https://github.com/RustPython/RustPython/pull/8721/commits/8ee5f1f8d133aef0721a0bf590114391098c9688 |
|
3ba6fb0
address review: portable kevent and kqueue close
youknowone Sep 16, 2026
| https://github.com/RustPython/RustPython/pull/8721/commits/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e |
|
Clear filters
| https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
|
_test_eintr.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
|
test_mmap.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
test_poll.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-8982163f21d77d010fa3163721399c1c47af696a0b0e6abd678516cd03fe123e |
|
test_pty.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
test_select.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-dc18ba624f656b0b064f242621eb6d1ee8ecf02dbb1382d3623d6ffa13e3a31c |
|
test_syslog.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c623124ea5144ee085cd8c7ba08cafd1673d6cc4a382623f6293e4ede8c24c82 |
|
test_termios.py
| https://github.com/RustPython/RustPython/pull/8721/files#diff-1d551e328263656ddaf66c44e63706eb1cabdd12fdf33f61c22c3c709ce92b5e |
|
posix.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a |
|
select.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-993db34b172322281745543278a8c9e6ed4af2ee8bbf3b05ab795019ed349852 |
|
fcntl.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-f24367c76fe0e3702bd85e14b9945f6f8c41d182a5775da079341204fd5e2f5f |
|
mmap.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-f019287585dfa476feb78beedd3e67b25292c5da5514fccbff2981bd8e0dc0df |
|
select.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-9e541446cb5321da18fb2db4eb334f6d7ec9f0cbdc04b74f120752d19efbb549 |
|
syslog.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c081d66088a808b2525fc0878b36ba7cd68960319d505605b43b1142842f0651 |
|
termios.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-f71c9947248d03cff69ec513944e7d52a21b63c8b48ebf54fee1eea4a9145b10 |
|
posix.rs
| https://github.com/RustPython/RustPython/pull/8721/files#diff-8a094b07fd40ee7a3b9e440782ded748539a5214c242b6b3438421fe0d616c6e |
| Lib/test/_test_eintr.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/_test_eintr.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-60657ac311c452c61e0a872c2d0c7b6e763196617d65cfb3a7f73d791c922271 |
| Lib/test/test_mmap.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_mmap.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-72134ea902824c38771f083192b3f7e3cee6d53476fee0fdc5c25b95421b7cdb |
| Lib/test/test_poll.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-8982163f21d77d010fa3163721399c1c47af696a0b0e6abd678516cd03fe123e |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_poll.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-8982163f21d77d010fa3163721399c1c47af696a0b0e6abd678516cd03fe123e |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-8982163f21d77d010fa3163721399c1c47af696a0b0e6abd678516cd03fe123e |
| Lib/test/test_pty.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_pty.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-818ac3490d7146a2dcd2d9add58f5e8f12cc3c1fe752d4e5eb7986852f6bb80d |
| Lib/test/test_select.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-dc18ba624f656b0b064f242621eb6d1ee8ecf02dbb1382d3623d6ffa13e3a31c |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_select.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-dc18ba624f656b0b064f242621eb6d1ee8ecf02dbb1382d3623d6ffa13e3a31c |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-dc18ba624f656b0b064f242621eb6d1ee8ecf02dbb1382d3623d6ffa13e3a31c |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-dc18ba624f656b0b064f242621eb6d1ee8ecf02dbb1382d3623d6ffa13e3a31c |
| Lib/test/test_syslog.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-c623124ea5144ee085cd8c7ba08cafd1673d6cc4a382623f6293e4ede8c24c82 |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_syslog.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c623124ea5144ee085cd8c7ba08cafd1673d6cc4a382623f6293e4ede8c24c82 |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c623124ea5144ee085cd8c7ba08cafd1673d6cc4a382623f6293e4ede8c24c82 |
| Lib/test/test_termios.py | https://github.com/RustPython/RustPython/pull/8721/files#diff-1d551e328263656ddaf66c44e63706eb1cabdd12fdf33f61c22c3c709ce92b5e |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/Lib/test/test_termios.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-1d551e328263656ddaf66c44e63706eb1cabdd12fdf33f61c22c3c709ce92b5e |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-1d551e328263656ddaf66c44e63706eb1cabdd12fdf33f61c22c3c709ce92b5e |
| crates/host_env/src/posix.rs | https://github.com/RustPython/RustPython/pull/8721/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/crates/host_env/src/posix.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-c4d8d17cd194261af90a2541465d39d6a285b66572131399a8690bd4c7bd599a |
| crates/host_env/src/select.rs | https://github.com/RustPython/RustPython/pull/8721/files#diff-993db34b172322281745543278a8c9e6ed4af2ee8bbf3b05ab795019ed349852 |
|
View file
| https://github.com/youknowone/RustPython/blob/3ba6fb00e9147b6a0f13e0db02be6e97fc818d5e/crates/host_env/src/select.rs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/RustPython/RustPython/pull/8721/{{ revealButtonHref }} |
|
| https://github.com/RustPython/RustPython/pull/8721/files#diff-993db34b172322281745543278a8c9e6ed4af2ee8bbf3b05ab795019ed349852 |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
| Please reload this page | https://github.com/RustPython/RustPython/pull/8721/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |