1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Translate kernel error into what pthread_create should return

This commit is contained in:
Ulrich Drepper
2011-05-11 18:23:24 -04:00
parent eac80ce2fa
commit 5bdcc10322
3 changed files with 8 additions and 3 deletions

View File

@ -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);