From 880867a475b1016f892a1248a3fce693406bf1f1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 9 May 2003 07:53:33 +0000 Subject: Update. 2003-05-09 Ulrich Drepper * sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file. --- nptl/allocatestack.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'nptl/allocatestack.c') diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 680f365..95ee992 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -393,7 +393,13 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, MAP_PRIVATE | MAP_ANONYMOUS | ARCH_MAP_FLAGS, -1, 0); if (__builtin_expect (mem == MAP_FAILED, 0)) - return errno; + { +#ifdef ARCH_RETRY_MMAP + mem = ARCH_RETRY_MMAP (size); + if (__builtin_expect (mem == MAP_FAILED, 0)) +#endif + return errno; + } /* SIZE is guaranteed to be greater than zero. So we can never get a null pointer back from mmap. */ -- cgit v1.1