Title: bpo-30225: Fix is_valid_fd() on macOS Tiger by vstinner · Pull Request #1443 · python/cpython · GitHub
Open Graph Title: bpo-30225: Fix is_valid_fd() on macOS Tiger by vstinner · Pull Request #1443 · python/cpython
X Title: bpo-30225: Fix is_valid_fd() on macOS Tiger by vstinner · Pull Request #1443 · python/cpython
Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.
Open Graph Description: is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed.
X Description: is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed.
Opengraph URL: https://github.com/python/cpython/pull/1443
X: @github
Domain: github.com
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:0373b516-13e0-392b-37fa-4967b56a5502 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D8BA:1E1ED:B910EF:FF54A4:6A4DC529 |
| html-safe-nonce | 20072423cb600c0912b29dcd26a0d353ed6100abe9f0aab53dc18d1cfa7d7993 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEJBOjFFMUVEOkI5MTBFRjpGRjU0QTQ6NkE0REM1MjkiLCJ2aXNpdG9yX2lkIjoiODQyODcxNDMwNzYwOTI4MTgzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4228d9b1b51c6f3f2200e5ee1f39c6d1e19e3ae82afa6190e107bf46e21c079b |
| hovercard-subject-tag | pull_request:118867090 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/1443/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/6fe9cb96c16f4e7a039b216edbdb5933793603759a0fdb02f0546f0c86f14b14/python/cpython/pull/1443 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6fe9cb96c16f4e7a039b216edbdb5933793603759a0fdb02f0546f0c86f14b14/python/cpython/pull/1443 |
| og:image:alt | is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-cache |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width