diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/ChangeLog | 5 | ||||
-rw-r--r-- | nptl/allocatestack.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index f99dcfb22d..436952d137 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,8 @@ +2011-05-11 Ulrich Drepper <drepper@gmail.com> + + [BZ #386] + * allocatestack.c (allocate_stack): Convert ENOMEM error to EAGAIN. + 2011-04-10 Ulrich Drepper <drepper@gmail.com> [BZ #12650] diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c index ba251b9162..82408f5178 100644 --- a/nptl/allocatestack.c +++ b/nptl/allocatestack.c @@ -637,7 +637,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp, { int err; mprot_error: - err = errno; + err = errno == ENOMEM ? EAGAIN : errno; lll_lock (stack_cache_lock, LLL_PRIVATE); |