https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227735
Bug ID: 227735
Summary: sched_setscheduler returns EPERM instead of EINVAL
when sched_priority is out of range
Product: Base System
Version: 11.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
According to the documentation of sched_setscheduler, [EINVAL] should be
returned if the value of the policy argument is invalid, or one or more
parameters contained in param is outside the valid range.
In ksched.c line 180, the ksched_setscheduler functions returns EPERM when
the check (param->sched_priority >= P1B_PRIO_MIN && param->sched_priority <=
P1B_PRIO_MAX) fails, It should return EINVAL instead.
This is a minor issue, but I think it should be fixed.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"