diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/ChangeLog | 3 | ||||
-rw-r--r-- | nptl/sysdeps/unix/sysv/linux/i386/createthread.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 2296c17803..7dc9523530 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,8 @@ 2002-12-15 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Set + multiple_threads member in correct TCB to 1. + * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Define SINGLE_THREAD_P. If in libc or libpthread examine multiple_thread member of thread decriptor, otherwise return unconditionally 1. diff --git a/nptl/sysdeps/unix/sysv/linux/i386/createthread.c b/nptl/sysdeps/unix/sysv/linux/i386/createthread.c index f9abce2df2..be2ca829ab 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/createthread.c +++ b/nptl/sysdeps/unix/sysv/linux/i386/createthread.c @@ -146,7 +146,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) return errno; /* We now have for sure more than one thread. */ - pd->header.data.multiple_threads = 1; + THREAD_SETMEM (THREAD_SELF, header.data.multiple_threads, 1); return 0; } |