Why does pthread_create() return ENOMEM instead of EAGAIN when resources are exhausted?
Issue
On a Red Hat Enterprise Linux system, when faced with a low memory situation, the pthread_create() system call may erroneously return ENOMEM when that is not a valid error code for the system call in question. It should be returning EAGAIN.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
