diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-12-14 16:33:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-12-14 16:33:44 +0000 |
commit | b8cca206e299902329df298a59b319911af64b29 (patch) | |
tree | a017ccae10442bc63ffdd75db0dc97e3b6bd4886 /nptl/allocatestack.c | |
parent | bc3e1c127392da88d0c8bf2ae728147982a3d1bc (diff) | |
download | glibc-b8cca206e299902329df298a59b319911af64b29.zip glibc-b8cca206e299902329df298a59b319911af64b29.tar.gz glibc-b8cca206e299902329df298a59b319911af64b29.tar.bz2 |
* sysdeps/x86_64/pthreaddef.h (ARCH_RETRY_MMAP): Take additional
parameter. Passed it as permission to mmap.
* allocatestack.c (allocate_stack): Pass prot as second parameter
to ARCH_RETRY_MMAP.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index f75599c..66128e4 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -459,7 +459,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, if (__builtin_expect (mem == MAP_FAILED, 0)) { #ifdef ARCH_RETRY_MMAP - mem = ARCH_RETRY_MMAP (size); + mem = ARCH_RETRY_MMAP (size, prot); if (__builtin_expect (mem == MAP_FAILED, 0)) #endif { |