diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-05-09 07:53:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-05-09 07:53:33 +0000 |
commit | 880867a475b1016f892a1248a3fce693406bf1f1 (patch) | |
tree | 9b2456ac53d0959c24a8851beb1378b949f24338 /nptl/allocatestack.c | |
parent | 92d83c725e09dbc76acfedc1cf85a01f9f54452d (diff) | |
download | glibc-880867a475b1016f892a1248a3fce693406bf1f1.tar glibc-880867a475b1016f892a1248a3fce693406bf1f1.tar.gz glibc-880867a475b1016f892a1248a3fce693406bf1f1.tar.bz2 glibc-880867a475b1016f892a1248a3fce693406bf1f1.zip |
Update.
2003-05-09 Ulrich Drepper <drepper@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/get_clockfreq.c: New file.
Diffstat (limited to 'nptl/allocatestack.c')
-rw-r--r-- | nptl/allocatestack.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index 680f365e04..95ee992a18 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. */ |