提交 b4560a6d 编写于 作者: R Rich Felker

avoid setting nondefault scheduler too

上级 61be1cfe
...@@ -4,5 +4,5 @@ ...@@ -4,5 +4,5 @@
int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param) int sched_setscheduler(pid_t pid, int sched, const struct sched_param *param)
{ {
static const struct sched_param def; static const struct sched_param def;
return syscall(SYS_sched_setscheduler, pid, sched, &def); return syscall(SYS_sched_setscheduler, pid, 0, &def);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册