projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7c20a11
)
fix syscall argument bug in pthread_getschedparam
author
Rich Felker
<dalias@aerifal.cx>
Thu, 27 Jun 2013 02:02:23 +0000
(22:02 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 27 Jun 2013 02:02:23 +0000
(22:02 -0400)
the address of the pointer to the sched param, rather than the
pointer, was being passed to the kernel.
src/thread/pthread_getschedparam.c
patch
|
blob
|
history
diff --git
a/src/thread/pthread_getschedparam.c
b/src/thread/pthread_getschedparam.c
index
7b6a95f
..
3053c18
100644
(file)
--- a/
src/thread/pthread_getschedparam.c
+++ b/
src/thread/pthread_getschedparam.c
@@
-7,7
+7,7
@@
int pthread_getschedparam(pthread_t t, int *restrict policy, struct sched_param
if (t->dead) {
r = ESRCH;
} else {
- r = -__syscall(SYS_sched_getparam, t->tid,
&
param);
+ r = -__syscall(SYS_sched_getparam, t->tid, param);
if (!r) {
*policy = __syscall(SYS_sched_getscheduler, t->tid);
}