1 --- a/nptl/pthread_create.c 2011-12-13 11:41:37.000000000 -0700
2 +++ b/nptl/pthread_create.c 2011-12-14 10:03:13.000000000 -0700
4 int err = ALLOCATE_STACK (iattr, &pd);
5 if (__builtin_expect (err != 0, 0))
6 /* Something went wrong. Maybe a parameter of the attributes is
7 - invalid or we could not allocate memory. */
9 + invalid or we could not allocate memory. Note we have to
10 + translate error codes. */
11 + return err == ENOMEM ? EAGAIN : err;
14 /* Initialize the TCB. All initializations with zero should be