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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user