avoid setting nondefault scheduler too
[musl] / src / sched / sched_setscheduler.c
index acf5dc2..1958066 100644 (file)
@@ -4,5 +4,5 @@
 int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
 {
        static const struct sched_param def;
-       return syscall(SYS_sched_setscheduler, pid, sched, &def);
+       return syscall(SYS_sched_setscheduler, pid, 0, &def);
 }