Skip to content

Commit

Permalink
added 'NoDevice' to 'WriteError'
Browse files Browse the repository at this point in the history
  • Loading branch information
allocgator committed Dec 2, 2024
1 parent cc55622 commit 2b9835e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/std/posix.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,9 @@ pub const WriteError = error{
/// This error occurs in Linux if the process being written to
/// no longer exists.
ProcessNotFound,
/// This error occurs when a device gets disconnected before or mid-flush
/// while it's being written to - errno(6): No such device or address.
NoDevice,
} || UnexpectedError;

/// Write to a file descriptor.
Expand Down

0 comments on commit 2b9835e

Please sign in to comment.