mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 00:02:17 +03:00
avoid setting nondefault scheduler too
This commit is contained in:
parent
61be1cfec1
commit
b4560a6da9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user