aboutsummaryrefslogtreecommitdiff
path: root/nptl/allocatestack.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-05-11 18:23:24 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-11 18:23:24 -0400
commit5bdcc10322c488f53557440acf71623d8b313ab5 (patch)
tree86ea9c63cf4e3c467c860c3860b479d8454c03f1 /nptl/allocatestack.c
parenteac80ce2fa2497c2b4ea1d55d690ad53e1375ece (diff)
downloadglibc-5bdcc10322c488f53557440acf71623d8b313ab5.zip
glibc-5bdcc10322c488f53557440acf71623d8b313ab5.tar.gz
glibc-5bdcc10322c488f53557440acf71623d8b313ab5.tar.bz2
Translate kernel error into what pthread_create should return
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 ba251b9..82408f5 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);