[issue41839] Solaris: Fix error checking in sched_get_priority_ functions
Jakub Kulik
report at bugs.python.org
Fri Nov 6 10:49:23 EST 2020
Jakub Kulik <kulikjak at gmail.com> added the comment:
> Checking for -1 rather than all negative values fixes this issue.
To be 100% exact, it should be "checking for -1 and errno" (as other Jakub noted in the PR). Here is the standard for reference:
https://pubs.opengroup.org/onlinepubs/009695399/functions/sched_get_priority_min.html
Sticking to it should hopefully not break anything.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41839>
_______________________________________
More information about the Python-bugs-list
mailing list