[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r9996 - in /fsf/trunk/libc/nptl: ChangeLog allocatestack.c pthread_create.c
- To: commits@xxxxxxxxxx
- Subject: [commits] r9996 - in /fsf/trunk/libc/nptl: ChangeLog allocatestack.c pthread_create.c
- From: eglibc@xxxxxxxxxx
- Date: Tue, 09 Mar 2010 08:03:17 -0000
Author: eglibc
Date: Tue Mar 9 00:03:15 2010
New Revision: 9996
Log:
Import glibc-mainline for 2010-03-09
Modified:
fsf/trunk/libc/nptl/ChangeLog
fsf/trunk/libc/nptl/allocatestack.c
fsf/trunk/libc/nptl/pthread_create.c
Modified: fsf/trunk/libc/nptl/ChangeLog
==============================================================================
--- fsf/trunk/libc/nptl/ChangeLog (original)
+++ fsf/trunk/libc/nptl/ChangeLog Tue Mar 9 00:03:15 2010
@@ -1,3 +1,9 @@
+2010-03-08 Andreas Schwab <schwab@xxxxxxxxxx>
+
+ * pthread_create.c (__pthread_create_2_1): Don't set setxid_futex.
+ * allocatestack.c (get_cached_stack): Set setxid_futex.
+ (allocate_stack): Likewise.
+
2010-03-05 Andreas Schwab <schwab@xxxxxxxxxx>
Ulrich Drepper <drepper@xxxxxxxxxx>
Modified: fsf/trunk/libc/nptl/allocatestack.c
==============================================================================
--- fsf/trunk/libc/nptl/allocatestack.c (original)
+++ fsf/trunk/libc/nptl/allocatestack.c Tue Mar 9 00:03:15 2010
@@ -212,6 +212,9 @@
return NULL;
}
+
+ /* Don't allow setxid until cloned. */
+ result->setxid_futex = -1;
/* Dequeue the entry. */
stack_list_del (&result->list);
@@ -418,6 +421,9 @@
/* The process ID is also the same as that of the caller. */
pd->pid = THREAD_GETMEM (THREAD_SELF, pid);
+ /* Don't allow setxid until cloned. */
+ pd->setxid_futex = -1;
+
/* Allocate the DTV for this thread. */
if (_dl_allocate_tls (TLS_TPADJ (pd)) == NULL)
{
@@ -553,6 +559,9 @@
/* Copy the sysinfo value from the parent. */
THREAD_SYSINFO(pd) = THREAD_SELF_SYSINFO;
#endif
+
+ /* Don't allow setxid until cloned. */
+ pd->setxid_futex = -1;
/* The process ID is also the same as that of the caller. */
pd->pid = THREAD_GETMEM (THREAD_SELF, pid);
Modified: fsf/trunk/libc/nptl/pthread_create.c
==============================================================================
--- fsf/trunk/libc/nptl/pthread_create.c (original)
+++ fsf/trunk/libc/nptl/pthread_create.c Tue Mar 9 00:03:15 2010
@@ -542,9 +542,6 @@
}
}
- /* Don't allow setxid until cloned. */
- pd->setxid_futex = -1;
-
/* Pass the descriptor to the caller. */
*newthread = (pthread_t) pd;