Why does pthread_create() return ENOMEM instead of EAGAIN when resources are exhausted?
Updated -
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
.
Environment
- Red Hat Ent...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.