[Bug 227735] sched_setscheduler returns EPERM instead of EINVAL when sched_priority is out of range
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Apr 24 06:03:07 UTC 2018
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: bugs at FreeBSD.org
Reporter: aliovx at gmail.com
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.
More information about the freebsd-bugs
mailing list