From f158e368c20ded5dc5e2c0de7944970159426794 Mon Sep 17 00:00:00 2001 From: nectar Date: Sat, 13 Sep 2003 18:46:24 +0000 Subject: sched_setscheduler: Return EINVAL when a invalid policy is specified, thus complying with POLA and the man page. (Previously, no error was returned for this case.) --- sys/posix4/ksched.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sys/posix4') diff --git a/sys/posix4/ksched.c b/sys/posix4/ksched.c index 950cbb2..6ef2940 100644 --- a/sys/posix4/ksched.c +++ b/sys/posix4/ksched.c @@ -228,6 +228,10 @@ int ksched_setscheduler(register_t *ret, struct ksched *ksched, mtx_unlock_spin(&sched_lock); } break; + + default: + e = EINVAL; + break; } return e; -- cgit v1.1