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 <1600854291.47.0.647428852002.issue41839@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-09-23 09:44:51kulikjaksetrecipients: + kulikjak
2020-09-23 09:44:51kulikjaksetmessageid: <1600854291.47.0.647428852002.issue41839@roundup.psfhosted.org>
2020-09-23 09:44:51kulikjaklinkissue41839 messages
2020-09-23 09:44:51kulikjakcreate