Message377363
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:51 | kulikjak | set | recipients:
+ kulikjak |
2020-09-23 09:44:51 | kulikjak | set | messageid: <1600854291.47.0.647428852002.issue41839@roundup.psfhosted.org> |
2020-09-23 09:44:51 | kulikjak | link | issue41839 messages |
2020-09-23 09:44:51 | kulikjak | create | |
|