[RHEL 5.4, 4.8] open(/proc/PID/xxx) fails with EINVAL even though it should be ENOENT
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.