]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blobdiff - src/patches/glibc/glibc-rh767746.patch
toolchain: glibc: Cross build package and import patches from RHEL6.
[people/teissler/ipfire-2.x.git] / src / patches / glibc / glibc-rh767746.patch
diff --git a/src/patches/glibc/glibc-rh767746.patch b/src/patches/glibc/glibc-rh767746.patch
new file mode 100644 (file)
index 0000000..58d96d8
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/nptl/pthread_create.c    2011-12-13 11:41:37.000000000 -0700
++++ b/nptl/pthread_create.c    2011-12-14 10:03:13.000000000 -0700
+@@ -440,8 +440,9 @@
+   int err = ALLOCATE_STACK (iattr, &pd);
+   if (__builtin_expect (err != 0, 0))
+     /* Something went wrong.  Maybe a parameter of the attributes is
+-       invalid or we could not allocate memory.  */
+-    return err;
++       invalid or we could not allocate memory.  Note we have to
++       translate error codes.  */
++    return err == ENOMEM ? EAGAIN : err;
+   /* Initialize the TCB.  All initializations with zero should be