Browse Source

avoid setting nondefault scheduler too

Rich Felker 13 years ago
parent
commit
b4560a6da9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sched/sched_setscheduler.c

+ 1 - 1
src/sched/sched_setscheduler.c

@@ -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);
 }