Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 1 May 1998 14:14:28 +0000 (14:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 1 May 1998 14:14:28 +0000 (14:14 +0000)
1998-05-01  Ulrich Drepper  <drepper@cygnus.com>

* manager.c (pthread_free): Unmap guard before the stack.
Patch by Matthias Urlichs.

linuxthreads/ChangeLog
linuxthreads/manager.c

index 4f0c67e73dabc8b0d82bed474dd20f5d11b09e50..a834b31bfad378d75a7745b5e80ae992fa84a2b0 100644 (file)
@@ -1,3 +1,8 @@
+1998-05-01  Ulrich Drepper  <drepper@cygnus.com>
+
+       * manager.c (pthread_free): Unmap guard before the stack.
+       Patch by Matthias Urlichs.
+
 1998-04-30  Ulrich Drepper  <drepper@cygnus.com>
 
        * manager.c (pthread_free): Detect already free child.
index 81674399a1ce4aad25a12c33fa5e87ae50fae51a..e7de399cdeee76b7c71ca2af7b43be220156eed5 100644 (file)
@@ -336,9 +336,9 @@ static void pthread_free(pthread_descr th)
   if (!th->p_userstack)
     {
       /* Free the stack and thread descriptor area */
-      munmap((caddr_t) ((char *)(th+1) - STACK_SIZE), STACK_SIZE);
       if (th->p_guardsize != 0)
        munmap(th->p_guardaddr, th->p_guardsize);
+      munmap((caddr_t) ((char *)(th+1) - STACK_SIZE), STACK_SIZE);
     }
 }