diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-14 03:26:28 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-14 03:26:28 +0000 |
commit | a7720b5e184ed038576e017701911169c7de8f8a (patch) | |
tree | 17bca8f9128fa8a7cfed52eae755fa13046ac70e /nptl/allocatestack.c | |
parent | a1ea4c0638ecf4ef3c421b03089000aca7d0f0eb (diff) | |
download | glibc-a7720b5e184ed038576e017701911169c7de8f8a.tar.gz glibc-a7720b5e184ed038576e017701911169c7de8f8a.tar.xz glibc-a7720b5e184ed038576e017701911169c7de8f8a.zip |
Update.
* sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Fix handling of cancellation and failung pthread_mutex_unlock call. * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: Likewise. * Makefile (tests): Add tst-cond8 and tst-cond9. * tst-cond8.c: New file. * tst-cond9.c: New file.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 94d4525ff0..1a4bf44367 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -465,8 +465,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, 0)) { /* The old guard area is too large. */ - if (mprotect ((char *) mem + guardsize, - pd->guardsize - guardsize, + if (mprotect ((char *) mem + guardsize, pd->guardsize - guardsize, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) goto mprot_error; |