]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/glibc/glibc-rh767746.patch
dhcpcd: fix delay after dhcp down.
[ipfire-2.x.git] / src / patches / glibc / glibc-rh767746.patch
CommitLineData
12788f63
MT
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
3@@ -440,8 +440,9 @@
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. */
8- return err;
9+ invalid or we could not allocate memory. Note we have to
10+ translate error codes. */
11+ return err == ENOMEM ? EAGAIN : err;
12
13
14 /* Initialize the TCB. All initializations with zero should be