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.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.