[Patch] Fix return value in pthread_create

Jeff Law law@redhat.com
Wed Dec 14 20:54:00 GMT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


pthread_create is supposed to return EAGAIN if there are insufficient
resources to create the new thread.

This problem was partially fixed in 0f7e0ee5, BZ 5245.  However it
missed the case where there's a failure allocating the thread's stack.

2011-12-14  Jeff Law  <law@redhat.com>

	* pthread_create.c (pthread_create_2_1): Translate ENOMEM to
	EAGAIN.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO6Qw4AAoJEBRtltQi2kC7+DwH/i/xadL/BYexBpPolZ8i2LCP
v+GPMP4lc2FN5sZTvERRDU9eDiUbmDrWH94jw/NESXoJLCQK0rA0DbWOYLopLTaJ
Kwai3K4QFX+SJwYL7it+o/lt7vKl6a89kMcr3iR8WM3MNsmIrzMxxLxI9/EJcrbn
6pc3kDZL7fm1F7RBDnOBC31tF0ptObyL21GMPmMOpfYIXSa+9E32yC/TQYfQtNA4
hFkPvguq6KuFnIeC2HYvuecI11vbbR623YUz6zLoUV1eTMibxnZg2eH+A60UkYWQ
+/6ahki1/CXI8T76jCWe0veReS2cDChPQ0dINLGfcmPorZcv7AqFHctKZKgedfQ=
=pM4/
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glibc-threadcreateretval.patch
Type: text/x-patch
Size: 583 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20111214/44abb46b/attachment.bin>


More information about the Libc-alpha mailing list