summaryrefslogtreecommitdiffstats
path: root/sys/posix4
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-09-13 18:46:24 +0000
committernectar <nectar@FreeBSD.org>2003-09-13 18:46:24 +0000
commitf158e368c20ded5dc5e2c0de7944970159426794 (patch)
tree5c18106dbca66446bf07dbdb3772c5a812e2053f /sys/posix4
parent05db443aaf1f96ab25a7ffef3f15add573d52538 (diff)
downloadFreeBSD-src-f158e368c20ded5dc5e2c0de7944970159426794.zip
FreeBSD-src-f158e368c20ded5dc5e2c0de7944970159426794.tar.gz
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.)
Diffstat (limited to 'sys/posix4')
-rw-r--r--sys/posix4/ksched.c4
1 files changed, 4 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud