Open breavyn opened 4 months ago
Reading or writing files under /proc/
/ on linux can result in an ESRCH error if the related process has terminated.
Linux returns the ENOENT error for a process (aka file) that no longer exists when trying to read or write to it. So I added 'ProcessNotFound' on this.
Functions should return error.ProcessNotFound on ESRCH.
This error occurs when you try to kill a process or process group that no longer exists.
Zig Version
0.12.0
Steps to Reproduce and Observed Behavior
Reading or writing files under
/proc/<pid>/
on linux can result in anESRCH
error if the related process has terminated.Functions
read
,pread
,readv
, etc. and theirwrite
counterparts,seek
, and possibly others, returnerror.Unexpected
in this case.Expected Behavior
Functions should return
error.ProcessNotFound
onESRCH
.