mirror of
https://github.com/fluencelabs/musl
synced 2025-06-25 20:51:53 +00:00
fix syscall argument bug in pthread_getschedparam
the address of the pointer to the sched param, rather than the pointer, was being passed to the kernel.
This commit is contained in:
@ -7,7 +7,7 @@ int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param
|
|||||||
if (t->dead) {
|
if (t->dead) {
|
||||||
r = ESRCH;
|
r = ESRCH;
|
||||||
} else {
|
} else {
|
||||||
r = -__syscall(SYS_sched_getparam, t->tid, ¶m);
|
r = -__syscall(SYS_sched_getparam, t->tid, param);
|
||||||
if (!r) {
|
if (!r) {
|
||||||
*policy = __syscall(SYS_sched_getscheduler, t->tid);
|
*policy = __syscall(SYS_sched_getscheduler, t->tid);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user