Skip to content

ESRCH is not handled by file io operations #19875

@breavyn

Description

@breavyn

Zig Version

0.12.0

Steps to Reproduce and Observed Behavior

Reading or writing files under /proc/<pid>/ on linux can result in an ESRCH error if the related process has terminated.

Functions read, pread, readv, etc. and their write counterparts, seek, and possibly others, return error.Unexpected in this case.

Expected Behavior

Functions should return error.ProcessNotFound on ESRCH.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavioros-linuxstandard libraryThis issue involves writing Zig code for the standard library.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions