summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-05-29 05:53:18 +0000
committerUlrich Drepper <drepper@redhat.com>2008-05-29 05:53:18 +0000
commit7c0ad1645f626ced465d7884ba55f30afd9ea462 (patch)
treeb721c127b9510299726ac71547e3c83dba977e01
parent109666405ba56ee31b6a28e10d8119588b2d67ac (diff)
(do_clone): Pass accurate length of CPU set to the kernel.
-rw-r--r--nptl/sysdeps/pthread/createthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/sysdeps/pthread/createthread.c b/nptl/sysdeps/pthread/createthread.c
index 59e62c2dcf..66fafe8050 100644
--- a/nptl/sysdeps/pthread/createthread.c
+++ b/nptl/sysdeps/pthread/createthread.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+/* Copyright (C) 2002-2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@@ -98,7 +98,7 @@ do_clone (struct pthread *pd, const struct pthread_attr *attr,
if (attr->cpuset != NULL)
{
res = INTERNAL_SYSCALL (sched_setaffinity, err, 3, pd->tid,
- sizeof (cpu_set_t), attr->cpuset);
+ attr->cpusetsize, attr->cpuset);
if (__builtin_expect (INTERNAL_SYSCALL_ERROR_P (res, err), 0))
{