[RHEL 5.4, 4.8] open(/proc/PID/xxx) fails with EINVAL even though it should be ENOENT

Solution Verified - Updated -

Issue

  • The open(/proc/PID/xxx) system call fails with EINVAL errno if the PID process is exiting at the same time, even though it should be ENOENT.

Environment

  • Red Hat Enterprise Linux 5 Update 4, Red Hat Enterprise Linux 4 Update
  • x86_64
  • 2.6.18-164.el5(RHEL5)
  • 2.6.9-89.0.16.EL(RHEL4)

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