about summary refs log tree commit diff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-12-14 16:33:44 +0000
committerUlrich Drepper <drepper@redhat.com>2007-12-14 16:33:44 +0000
commitb8cca206e299902329df298a59b319911af64b29 (patch)
treea017ccae10442bc63ffdd75db0dc97e3b6bd4886 /nptl/allocatestack.c
parentbc3e1c127392da88d0c8bf2ae728147982a3d1bc (diff)
downloadglibc-b8cca206e299902329df298a59b319911af64b29.tar.gz
glibc-b8cca206e299902329df298a59b319911af64b29.tar.xz
glibc-b8cca206e299902329df298a59b319911af64b29.zip
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index f75599c668..66128e455b 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
 		{