Site icon EfmSoft

What does errno 3 (ESRCH) mean?

 
Could be also:
ConstantTypeOS
ERROR_PATH_NOT_FOUNDWin32 errorWindows
STATUS_WAIT_3NTSTATUSWindows
KERN_NO_SPACEKern returnMac
ippStsSqrtNegArgIntel Ipp StatusAny
INVALID_AFFINITY_SETBugCheck CodeWindows
Previous Next
ENOENT EINTR

ESRCH

Process identity is time-sensitive

ESRCH is most familiar from kill(): the supplied process ID or process-group ID did not identify a target at the time the kernel handled the request. The same condition can occur after a child has already been reaped, or when Linux pidfd_open() is asked to obtain a descriptor for a process that has already disappeared.

This is different from EPERM. EPERM means a target was found but the caller was not allowed to signal it; ESRCH means the lookup found no target. A preliminary kill(pid, 0) check can test a PID without sending a signal, but it cannot make a later operation race-free because the process may exit after the check.

What to record and how to handle it

References


Looking for a different code? Search another status or error code.

Exit mobile version