This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kulikjak
Recipients kulikjak
Date 2020-09-23.09:44:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Python presumes that any negative number returned from sched_get_priority_min or sched_get_priority_max indicates that error has occurred. However, neither Linux manual pages nor POSIX.1-2001 specification forbids negative values to be returned; only -1 has a special meaning for error.

On Solaris, sched_get_priority_min can, in some instances, return -60, and while this is a legitimate scheduling priority value, Python throws an OSError. Checking for -1 rather than all negative values fixes this issue.
Date User Action Args
2020-09-23 09:44:51kulikjaksetrecipients: + kulikjak
2020-09-23 09:44:51kulikjaksetmessageid: <>
2020-09-23 09:44:51kulikjaklinkissue41839 messages
2020-09-23 09:44:51kulikjakcreate