From 5bdcc10322c488f53557440acf71623d8b313ab5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 11 May 2011 18:23:24 -0400 Subject: Translate kernel error into what pthread_create should return --- nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/allocatestack.c') 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); -- cgit v1.2.3