-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESRCH
is not handled by file io operations
#19875
Comments
process. This error occurs if the process to be read from or written to no longer exists. Fixes ziglang#19875
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.
This error occurs when you try to kill a process or process group that no longer exists. |
process. This error occurs if the process to be read from or written to no longer exists. Fixes ziglang#19875
…ing in a Linux process (#21430) * Added error message 'ProcessNotFound' for reading and writing in a Linux process. This error occurs if the process to be read from or written to no longer exists. Fixes #19875 * Added error message "ProcessNotFound" for error forwarding. * Add error messgae for forwarding. * Added message for forwarding. * Error set completed. * Fixed format error. * Changed comments to doc comments.
…ing in a Linux process (ziglang#21430) * Added error message 'ProcessNotFound' for reading and writing in a Linux process. This error occurs if the process to be read from or written to no longer exists. Fixes ziglang#19875 * Added error message "ProcessNotFound" for error forwarding. * Add error messgae for forwarding. * Added message for forwarding. * Error set completed. * Fixed format error. * Changed comments to doc comments.
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
.The text was updated successfully, but these errors were encountered: