projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dbbb6d
)
(pthread_free): Unmap guard before the stack.
author
drepper
<drepper>
Fri, 1 May 1998 14:14:08 +0000
(14:14 +0000)
committer
drepper
<drepper>
Fri, 1 May 1998 14:14:08 +0000
(14:14 +0000)
linuxthreads/manager.c
patch
|
blob
|
history
diff --git
a/linuxthreads/manager.c
b/linuxthreads/manager.c
index
8167439
..
e7de399
100644
(file)
--- a/
linuxthreads/manager.c
+++ b/
linuxthreads/manager.c
@@
-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);
}
}