GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-137044: Make resource.RLIM_INFINITY always positive by serhiy-storchaka · Pull Request #137511 · python/cpython Conversation
|
| :data:`resource.RLIM_INFINITY` is now always a positive integer larger than | ||
| any limited resource value. This simplifies comparison of the resource | ||
| values. Previously, it could be negative, such as -1 or -3, depending on | ||
| platform. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think we test/guarantee that RLIM_INFINITY is bigger than limited values. AFAIK, POSIX would have no problem with RLIM_INFINITY being zero.
So, this should be:
| :data:`resource.RLIM_INFINITY` is now always a positive integer larger than | |
| any limited resource value. This simplifies comparison of the resource | |
| values. Previously, it could be negative, such as -1 or -3, depending on | |
| platform. | |
| :data:`resource.RLIM_INFINITY` is now always a positive integer. | |
| Previously, it could be negative, such as -1 or -3, depending on | |
| platform. |
or:
| :data:`resource.RLIM_INFINITY` is now always a positive integer larger than | |
| any limited resource value. This simplifies comparison of the resource | |
| values. Previously, it could be negative, such as -1 or -3, depending on | |
| platform. | |
| :data:`resource.RLIM_INFINITY` is now always a positive integer. | |
| On supported platforms, it is larger than any limited resource value, | |
| which simplifies comparison of the resource values. | |
| Previously, it could be negative, such as -1 or -3, depending on | |
| platform. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
https://pubs.opengroup.org/onlinepubs/9799919799/functions/getrlimit.html
The value RLIM_INFINITY, defined in <sys/resource.h>, shall be considered to be larger than any other limit value.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
To be clear, I do not think this should have been merged without this change.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This seems to have broken |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-137511)" This reverts commit 0324c72.
|
Test fix: #137941. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…H-137511) It is now a positive integer larger larger than any limited resource value. This simplifies comparison of the resource values. Previously, it could be negative, such as -1 or -3, depending on platform. Deprecation warning is emitted if the old negative value is passed.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.