Title: os.pidf_* functions not available when building with older glibc and modern Linux UAPI headers · Issue #153463 · python/cpython · GitHub
Open Graph Title: os.pidf_* functions not available when building with older glibc and modern Linux UAPI headers · Issue #153463 · python/cpython
X Title: os.pidf_* functions not available when building with older glibc and modern Linux UAPI headers · Issue #153463 · python/cpython
Description: Bug report Bug description: This is an edge case but occurred in python-build-standalone, astral-sh/python-build-standalone#1163. On systems using glibc that predates the addition of SYS_getrandom, os.pidfd_open() and os.pidfd_getfd() wi...
Open Graph Description: Bug report Bug description: This is an edge case but occurred in python-build-standalone, astral-sh/python-build-standalone#1163. On systems using glibc that predates the addition of SYS_getrandom,...
X Description: Bug report Bug description: This is an edge case but occurred in python-build-standalone, astral-sh/python-build-standalone#1163. On systems using glibc that predates the addition of SYS_getrandom,...
Opengraph URL: https://github.com/python/cpython/issues/153463
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"os.pidf_* functions not available when building with older glibc and modern Linux UAPI headers","articleBody":"# Bug report\n\n### Bug description:\n\nThis is an edge case but occurred in python-build-standalone, astral-sh/python-build-standalone#1163.\n\nOn systems using glibc that predates the addition of `SYS_getrandom`, `os.pidfd_open()` and `os.pidfd_getfd()` will not be built even when the required `__NR_pidfd_*` syscall macros are available. These macros were added to the kernel UAPI much later than `getrandom` but it is possible to build with modern kernel UAPI headers while using an older glibc. For example, this approach is taken in python-build-standalone to allow newer kernel syscalls to be used while maintaining compatibility with older glibc versions.\n\nThe fix is straightforward, guard the include with `HAVE_SYS_SYSCALL_H` rather than `HAVE_GETRANDOM_SYSCALL`.\n\n\n\n### CPython versions tested on:\n\n3.15\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-153464\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/jjhelmus","@type":"Person","name":"jjhelmus"},"datePublished":"2026-07-09T21:46:05Z","url":"https://github.com/python/cpython/issues/153463"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a5b523b1-9647-3176-01a7-cbb6a9bbe631 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C400:2E7EBB:40752C8:518D1B3:6B020F66 |
| html-safe-nonce | 96188070ec6b2610efc6a55cbada39496ea034fca65967700287ca795f217625 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDAwOjJFN0VCQjo0MDc1MkM4OjUxOEQxQjM6NkIwMjBGNjYiLCJ2aXNpdG9yX2lkIjoiNTMwNzQ1MjY3NDcyMjEwNzIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 41461cbb56c4eaa2c2ced0491a2f229e39caf25a1adb29195457f7d811c9b006 |
| hovercard-subject-tag | issue:4850127847 |
| github-keyboard-shortcuts | repository,issues,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/issues/show/python/cpython/153463/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02afa92b43028aaaabbd391e2d6634300223d07cea55f2a46a45fc6ff1af7d10/python/cpython/issues/153463 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02afa92b43028aaaabbd391e2d6634300223d07cea55f2a46a45fc6ff1af7d10/python/cpython/issues/153463 |
| og:image:alt | Bug report Bug description: This is an edge case but occurred in python-build-standalone, astral-sh/python-build-standalone#1163. On systems using glibc that predates the addition of SYS_getrandom,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jjhelmus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width