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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content