[Bug nptl/5245] pthread_create returns ENOMEM instead of EAGAIN

wangf at cn dot fujitsu dot com sourceware-bugzilla@sourceware.org
Thu Nov 8 01:07:00 GMT 2007


------- Additional Comments From wangf at cn dot fujitsu dot com  2007-11-08 01:07 -------
pthread_create() calls the static function creat_thread(), and this funciton 
at last calls __clone(), __clone() may set errno to ENOMEM. So why not check 
the ENOMEM in pthread_create(), it won't miss any ENOMEM case.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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.



More information about the Glibc-bugs mailing list