From b8f076b63d6fcbb01539d5541520a32bccc0e219 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 23 Oct 2026 11:00:49 -0300 Subject: Audit: the hosts' wire on std.Io Reader/Writer, Lsp and selection_pipe deliver through a sink, std.Io clock and sleep wire.zig reads and writes through std.Io.Reader/Writer instead of its own framing helpers; host_io.Lsp.start and selection_pipe.start take a callback sink, so each shell keeps no copy of the worker plumbing. Co-Authored-By: Claude Opus 5.5 --- src/detached/client.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/detached/client.zig') diff --git a/src/detached/client.zig b/src/detached/client.zig index 60950208..cd17871e 100644 --- a/src/detached/client.zig +++ b/src/detached/client.zig @@ -165,7 +165,7 @@ pub const Client = struct { _ = libc.close(fd); return error.NoSession; } - server.setNonblock(fd); + _ = server.setNonblock(fd); var c: Client = .{ .gpa = gpa, .fd = fd }; errdefer c.deinit(); try c.send(.{ .hello = .{ @@ -225,7 +225,7 @@ pub const Client = struct { // next flush: the session decodes it as a message, refuses it, and // drops a frontend whose only mistake was a message this protocol // cannot carry (an `Event.command` past 64 KiB is `Overlong`, and a - // caller that mis-sized the queue is `NoSpace`). + // caller that mis-sized the queue is `WriteFailed`). c.out.items.len = at; return err; }; @@ -1201,7 +1201,7 @@ test "detached session: a frontend is never asked to fork, write, or watch" { for (0..256) |i| { const tag: u8 = @intCast(i); // Payloads are deliberately empty: what is asked is whether the TAG is - // known, and every known tag fails later (`Truncated`) or succeeds, but + // known, and every known tag fails later (`EndOfStream`) or succeeds, but // never with `BadTag`. if (wire.decodeServer(tag, &.{})) |_| accepted += 1 else |err| switch (err) { error.BadTag => continue, -- cgit v1.3