]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Translate kernel error into what pthread_create should return
authorUlrich Drepper <drepper@gmail.com>
Wed, 11 May 2011 22:23:24 +0000 (18:23 -0400)
committerUlrich Drepper <drepper@gmail.com>
Wed, 11 May 2011 22:23:24 +0000 (18:23 -0400)
NEWS
nptl/ChangeLog
nptl/allocatestack.c

diff --git a/NEWS b/NEWS
index f5cc012cd7ad8a33722b51c6d9fbd6dcd21d2c64..c43a2b2fb65bbeb1d4e4744a90b5bab65936c1b3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes.  2011-5-10
+GNU C Library NEWS -- history of user-visible changes.  2011-5-11
 Copyright (C) 1992-2009, 2010, 2011 Free Software Foundation, Inc.
 See the end for copying conditions.
 
@@ -9,7 +9,7 @@ Version 2.14
 
 * The following bugs are resolved with this release:
 
-  11257, 11258, 11487, 11532, 11578, 11653, 11668, 11724, 11945, 11947,
+  386, 11257, 11258, 11487, 11532, 11578, 11653, 11668, 11724, 11945, 11947,
   12158, 12178, 12200, 12346, 12393, 12420, 12445, 12449, 12454, 12460,
   12469, 12489, 12509, 12510, 12518, 12541, 12545, 12551, 12583, 12587,
   12597, 12611, 12631, 12650, 12653, 12655, 12660, 12681, 12685, 12711,
index f99dcfb22d7cb533b93af85f88c1d4fe93ebb03d..436952d137a80358e7c1b7138c1688f581491e99 100644 (file)
@@ -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]
index ba251b91626cd1463a19f9db3fbed85eec585897..82408f5178f5654be06e15679d055c99b9fbf998 100644 (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);