projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3937827
)
Use memcpy to copy sched_param.
author
drepper
<drepper>
Tue, 30 Jun 1998 11:53:23 +0000
(11:53 +0000)
committer
drepper
<drepper>
Tue, 30 Jun 1998 11:53:23 +0000
(11:53 +0000)
linuxthreads/manager.c
patch
|
blob
|
history
diff --git
a/linuxthreads/manager.c
b/linuxthreads/manager.c
index
e69abac
..
7d48489
100644
(file)
--- a/
linuxthreads/manager.c
+++ b/
linuxthreads/manager.c
@@
-303,7
+303,8
@@
static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
switch(attr->inheritsched) {
case PTHREAD_EXPLICIT_SCHED:
new_thread->p_start_args.schedpolicy = attr->schedpolicy;
- new_thread->p_start_args.schedparam = attr->schedparam;
+ memcpy (&new_thread->p_start_args.schedparam, &attr->schedparam,
+ sizeof (struct sched_param));
break;
case PTHREAD_INHERIT_SCHED:
/* schedpolicy doesn't need to be set, only get priority */