diff --git a/src/backend/io_uring.zig b/src/backend/io_uring.zig index e9e2d02..8ec9c81 100644 --- a/src/backend/io_uring.zig +++ b/src/backend/io_uring.zig @@ -744,6 +744,8 @@ pub const Completion = struct { @intCast(res) else switch (@as(posix.E, @enumFromInt(-res))) { .CANCELED => error.Canceled, + // If a write is interrupted, we retry it automatically. + .INTR => return .rearm, else => |errno| posix.unexpectedErrno(errno), }, },