mirror of git://sourceware.org/git/glibc.git
Update.
1998-05-01 Ulrich Drepper <drepper@cygnus.com> * manager.c (pthread_free): Unmap guard before the stack. Patch by Matthias Urlichs.
This commit is contained in:
parent
52ec8aabc3
commit
f9119f49a6
|
@ -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>
|
1998-04-30 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* manager.c (pthread_free): Detect already free child.
|
* manager.c (pthread_free): Detect already free child.
|
||||||
|
|
|
@ -336,9 +336,9 @@ static void pthread_free(pthread_descr th)
|
||||||
if (!th->p_userstack)
|
if (!th->p_userstack)
|
||||||
{
|
{
|
||||||
/* Free the stack and thread descriptor area */
|
/* Free the stack and thread descriptor area */
|
||||||
munmap((caddr_t) ((char *)(th+1) - STACK_SIZE), STACK_SIZE);
|
|
||||||
if (th->p_guardsize != 0)
|
if (th->p_guardsize != 0)
|
||||||
munmap(th->p_guardaddr, th->p_guardsize);
|
munmap(th->p_guardaddr, th->p_guardsize);
|
||||||
|
munmap((caddr_t) ((char *)(th+1) - STACK_SIZE), STACK_SIZE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue