summary refs log tree commit diff
path: root/linuxthreads/manager.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-01-19 00:10:36 +0000
committerUlrich Drepper <drepper@redhat.com>2000-01-19 00:10:36 +0000
commit9e56c380bce196b1e66fbed5c6684776f86307db (patch)
tree8fa1cea6d81742d3a993ec3626b0780f6fd011cc /linuxthreads/manager.c
parentc7e85d0c08ccbfc7604f6d50579c3a4b25281ff1 (diff)
downloadglibc-9e56c380bce196b1e66fbed5c6684776f86307db.tar.gz
glibc-9e56c380bce196b1e66fbed5c6684776f86307db.tar.xz
glibc-9e56c380bce196b1e66fbed5c6684776f86307db.zip
Update.
	* nscd/connections.c (dbs): Use
	PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP for .lock.
	Pretty printing.

	* nscd/hstcache.c (cache_addhst): Don't automatically add IPv6
	address.  Suggested by Philip Blundell.
Diffstat (limited to 'linuxthreads/manager.c')
-rw-r--r--linuxthreads/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linuxthreads/manager.c b/linuxthreads/manager.c
index 3a6f085bbf..21a692847f 100644
--- a/linuxthreads/manager.c
+++ b/linuxthreads/manager.c
@@ -315,8 +315,8 @@ static int pthread_allocate_stack(const pthread_attr_t *attr,
       else
         {
           /* Put a bad page at the bottom of the stack */
-          guardaddr = (void *)new_thread_bottom - stacksize;
           guardsize = attr->__guardsize;
+	  guardaddr = (void *)new_thread_bottom - guardsize;
           if (mmap ((caddr_t) guardaddr, guardsize, 0, MAP_FIXED, -1, 0)
               == MAP_FAILED)
             {
@@ -512,7 +512,7 @@ static void pthread_free(pthread_descr th)
   /* One fewer threads in __pthread_handles */
   __pthread_handles_num--;
 
-  /* Destroy read lock list, and list of free read lock structures. 
+  /* Destroy read lock list, and list of free read lock structures.
      If the former is not empty, it means the thread exited while
      holding read locks! */