[issue41839] Solaris: Fix error checking in sched_get_priority_ functions

2020-11-06 Thread Jakub Kulik
Jakub Kulik 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_g

[issue41839] Solaris: Fix error checking in sched_get_priority_ functions

2020-11-05 Thread Jakub Stasiak
Jakub Stasiak added the comment: I think negative values aren't possible on Linux if one's to trust the sched_get_priority_min man page: Linux allows the static priority range 1 to 99 for the SCHED_FIFO and SCHED_RR policies, and the priority 0 for the remaining policies.

[issue41839] Solaris: Fix error checking in sched_get_priority_ functions

2020-10-30 Thread STINNER Victor
Change by STINNER Victor : -- title: Fix error checking in sched_get_priority_ functions -> Solaris: Fix error checking in sched_get_priority_ functions ___ Python tracker ___