[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 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.