about summary refs log tree commit diff
path: root/linuxthreads/pthread.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-08-05 03:10:51 +0000
committerUlrich Drepper <drepper@redhat.com>2000-08-05 03:10:51 +0000
commit0a8d92310f5c5e0c09c8ff9a79ac652a66d5b3da (patch)
tree0a62a23127a3160e631470503b0d2b3965679a9d /linuxthreads/pthread.c
parent21b2be883c70e52515cbbdf6ceb84f9a8c8bebdd (diff)
downloadglibc-0a8d92310f5c5e0c09c8ff9a79ac652a66d5b3da.tar.gz
glibc-0a8d92310f5c5e0c09c8ff9a79ac652a66d5b3da.tar.xz
glibc-0a8d92310f5c5e0c09c8ff9a79ac652a66d5b3da.zip
Update.
2000-08-04  Ulrich Drepper  <drepper@redhat.com>

	* manager.c (__pthread_nonstandard_stacks): Define only if
	THREAD_SELF is not defined.
	(pthread_allocate_stack): Always initialize gardaddr to a correct
	value.
	(pthread_handle_create): Unmap thread with one call.
	(pthread_free): Remove test for initial thread before removing stack.
	Unmap stack with one call.

	* pthread.c (__pthread_initial_thread): Initialize p_userstack to
	1 to avoid removing the stack.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r--linuxthreads/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c
index 8aaa4b4ccd..d13923a821 100644
--- a/linuxthreads/pthread.c
+++ b/linuxthreads/pthread.c
@@ -80,7 +80,7 @@ struct _pthread_descr_struct __pthread_initial_thread = {
                               /* struct pthread_start_args p_start_args */
   {NULL},                     /* void ** p_specific[PTHREAD_KEY_1STLEVEL_SIZE] */
   {NULL},                     /* void * p_libc_specific[_LIBC_TSD_KEY_N] */
-  0,                          /* int p_userstack */
+  1,                          /* int p_userstack */
   NULL,                       /* void * p_guardaddr */
   0,                          /* size_t p_guardsize */
   0,                          /* Always index 0 */