[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commits] r6260 - in /fsf/trunk/libc/nptl: ChangeLog sysdeps/pthread/createthread.c



Author: eglibc
Date: Thu May 29 00:05:44 2008
New Revision: 6260

Log:
Import glibc-mainline for 2008-05-29

Modified:
    fsf/trunk/libc/nptl/ChangeLog
    fsf/trunk/libc/nptl/sysdeps/pthread/createthread.c

Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Thu May 29 00:05:44 2008
@@ -1,3 +1,8 @@
+2008-05-28  Ulrich Drepper  <drepper@xxxxxxxxxx>
+
+	* sysdeps/pthread/createthread.c (do_clone): Pass accurate length
+	of CPU set to the kernel.
+
 2008-05-23  Paul Pluzhnikov  <ppluzhnikov@xxxxxxxxxx>
 
 	* sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: Add

Modified: fsf/trunk/libc/nptl/sysdeps/pthread/createthread.c
==============================================================================
--- fsf/trunk/libc/nptl/sysdeps/pthread/createthread.c (original)
+++ fsf/trunk/libc/nptl/sysdeps/pthread/createthread.c Thu May 29 00:05:44 2008
@@ -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@xxxxxxxxxx>, 2002.
 
@@ -98,7 +98,7 @@
       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))
 	    {