This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug nptl/5245] pthread_create returns ENOMEM instead of EAGAIN
- From: "wangf at cn dot fujitsu dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Nov 2007 03:49:19 -0000
- Subject: [Bug nptl/5245] pthread_create returns ENOMEM instead of EAGAIN
- References: <20071102034326.5245.wangf@cn.fujitsu.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wangf at cn dot fujitsu dot com 2007-11-02 03:49 -------
This is tested with glibc version 2.7.
And the attached patch fixes the bug.
After applying the patch, the test result is:
-----------------------------------------------------------
$ ./test_pthread_create
errno 12: Cannot allocate memory
pthread_cretate returns 11: Resource temporarily unavailable
-----------------------------------------------------------
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|pthread_create returns |pthread_create returns
|ENOMEM instead of EAGAIN |ENOMEM instead of EAGAIN
http://sourceware.org/bugzilla/show_bug.cgi?id=5245
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.