Title: gh-102179: Fix os.dup2() error reporting for negative fds by izbyshev · Pull Request #102180 · python/cpython · GitHub
Open Graph Title: gh-102179: Fix os.dup2() error reporting for negative fds by izbyshev · Pull Request #102180 · python/cpython
X Title: gh-102179: Fix os.dup2() error reporting for negative fds by izbyshev · Pull Request #102180 · python/cpython
Description: A remnant of old code manually checks the sign of fds, but doesn't set errno before raising OSError:
>>> os.dup2(-1, 0)
Traceback (most recent call last):
File "
Open Graph Description: A remnant of old code manually checks the sign of fds, but doesn't set errno before raising OSError: >>> os.dup2(-1, 0) Traceback (most recent call last): File "<stdin>&qu...
X Description: A remnant of old code manually checks the sign of fds, but doesn't set errno before raising OSError: >>> os.dup2(-1, 0) Traceback (most recent call last): File &q...
Opengraph URL: https://github.com/python/cpython/pull/102180
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7c06f467-ebf0-5846-861f-186c2ed5ecb7 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CD8C:146FD0:2A6EC5:3B8B1E:696A1D0C |
| html-safe-nonce | 82ceaf4faa5360d8cc4180c4c45e7513b4773db4dbbb4a6bbb5f78c1540cf266 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDhDOjE0NkZEMDoyQTZFQzU6M0I4QjFFOjY5NkExRDBDIiwidmlzaXRvcl9pZCI6Ijc3MzgwMzAyMjcxOTg3MTMxMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e9821a1d38f2bf4987dbe19b70392cce0452225a95fe6e25a8aa13e01d2f818 |
| hovercard-subject-tag | pull_request:1251856945 |
| 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/python/cpython/pull/102180/files |
| twitter:image | https://avatars.githubusercontent.com/u/11427362?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11427362?s=400&v=4 |
| og:image:alt | A remnant of old code manually checks the sign of fds, but doesn't set errno before raising OSError: >>> os.dup2(-1, 0) Traceback (most recent call last): File "<stdin>&qu... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 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 | d515f6f09fa57a93bf90355cb894eb84ca4f458f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width