Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34k
gh-95672 skip fcntl when pipesize is smaller than pagesize#102163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
a3e90fc89cc89f81a7ac4aa752c6f8fb6ddec6a0cfeea71c30464b45ca6a96ee14a345d5c400660fe601bf11762File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -51,6 +51,8 @@ | ||
| # sys | ||
| "is_jython", "is_android", "is_emscripten", "is_wasi", | ||
| "check_impl_detail", "unix_shell", "setswitchinterval", | ||
| # os | ||
| "get_pagesize", | ||
| # network | ||
| "open_urlresource", | ||
| # processes | ||
| @@ -1893,6 +1895,18 @@ def setswitchinterval(interval): | ||
| return sys.setswitchinterval(interval) | ||
| def get_pagesize(): | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll change https://github.com/python/cpython/blob/main/Lib/test/memory_watchdog.py#L13 to get_pagesize in other pr.
hyeongyun0916 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| """Get size of a page in bytes.""" | ||
| try: | ||
| page_size = os.sysconf('SC_PAGESIZE') | ||
| except (ValueError, AttributeError): | ||
| try: | ||
| page_size = os.sysconf('SC_PAGE_SIZE') | ||
| except (ValueError, AttributeError): | ||
| page_size = 4096 | ||
| return page_size | ||
hyeongyun0916 marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading. Please reload this page. | ||
| @contextlib.contextmanager | ||
| def disable_faulthandler(): | ||
| import faulthandler | ||
Uh oh!
There was an error while loading. Please reload this page.