about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-04 08:56:12 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-04 08:56:12 +0000
commitcc775edf2d0c033dec6248454bdd5e1973f903dc (patch)
treef794b3eb665119c149cc8e07fd249b86e63e2f06 /nptl
parentf04a27210a828cf7d5746d09265d4fa210c1a65b (diff)
downloadglibc-cc775edf2d0c033dec6248454bdd5e1973f903dc.tar.gz
glibc-cc775edf2d0c033dec6248454bdd5e1973f903dc.tar.xz
glibc-cc775edf2d0c033dec6248454bdd5e1973f903dc.zip
Update.
	* sysdeps/generic/dl-sysdep.h: Add double include protection.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/pthread_create.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index c1c695b60f..92183629aa 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-04  Ulrich Drepper  <drepper@redhat.com>
+
+	* pthread_create.c (start_thread): Use THREAD_SETMEM to store
+	result of the thread function.
+
 2003-03-03  Ulrich Drepper  <drepper@redhat.com>
 
 	* sysdeps/unix/sysv/linux/s390/dl-sysdep.h: Removed.  The generic
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c
index 6ed5200e33..1d342786f4 100644
--- a/nptl/pthread_create.c
+++ b/nptl/pthread_create.c
@@ -225,7 +225,7 @@ start_thread (void *arg)
   if (setjmp (pd->cancelbuf) == 0)
     {
       /* Run the code the user provided.  */
-      pd->result = pd->start_routine (pd->arg);
+      THREAD_SETMEM (pd, result, pd->start_routine (pd->arg));
     }
 
   /* The thread is exiting now.  */