From 21088aee2eb6bf12fd3b1db918ee4754989ff7da Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 26 Jun 2013 21:34:44 -0400 Subject: [PATCH] fix failure of pthread_setschedparam to pass correct param to kernel the address of the pointer, rather than the pointer, was being passed. this was probably a copy-and-paste error from corresponding get code. --- src/thread/pthread_setschedparam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread/pthread_setschedparam.c b/src/thread/pthread_setschedparam.c index 8e8b5a19..c4738d64 100644 --- a/src/thread/pthread_setschedparam.c +++ b/src/thread/pthread_setschedparam.c @@ -4,7 +4,7 @@ int pthread_setschedparam(pthread_t t, int policy, const struct sched_param *par { int r; __lock(t->killlock); - r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, ¶m); + r = t->dead ? ESRCH : -__syscall(SYS_sched_setscheduler, t->tid, policy, param); __unlock(t->killlock); return r; } -- 2.20.1