Commit 9a33769

Eric Bower  ·  2026-04-26 22:07:58 -0400 EDT
parent 085fe3e
chore: cleanup
3 files changed,  +9, -14
+7, -9
......@@ -245,15 +245,13 @@ pub fn probeSession(
245245 return error.Unexpected;
246246 }
247247
248-// ╔════════════════════════════════════════════════════════════════════╗
249-// ║ WIRE PROTOCOL FREEZE — read before "fixing" any test below. ║
250-// ║ ║
251-// ║ Changing these constants does not fix the test; it breaks every ║
252-// ║ running daemon for every user until they `pkill -f zmx`. ║
253-// ║ ║
254-// ║ Need a new field? → add a new `Tag` value (next free integer). ║
255-// ║ Need to remove one? → don't. Reserve the integer, stop sending it. ║
256-// ╚════════════════════════════════════════════════════════════════════╝
248+// WIRE PROTOCOL FREEZE — read before "fixing" any test below.
249+//
250+// Changing these constants does not fix the test; it breaks every
251+// running daemon for every user until they `pkill -f zmx`.
252+//
253+// Need a new field? → add a new `Tag` value (next free integer).
254+// Need to remove one? → don't. Reserve the integer, stop sending it.
257255 test "Info wire size is frozen" {
258256 try std.testing.expectEqual(@as(usize, 552), @sizeOf(Info));
259257 // packed struct{u8,u32} backs to u40 → @sizeOf rounds to 8, not 5.
+1, -5
......@@ -2580,7 +2580,7 @@ fn wakeSignalPipe(_: i32, _: *const posix.siginfo_t, _: ?*anyopaque) callconv(.c
25802580 std.c._errno().* = saved;
25812581 }
25822582
2583-// std.posix.poll retries EINTR internally, so SA_RESTART is moot — neither
2583+// std.posix.poll retries EINTR internally, so SA_RESTART is moot -- neither
25842584 // setting wakes the loop. The handler writes to sig_pipe instead; poll()
25852585 // wakes on its read end.
25862586 fn installWakeHandler(sig: u6) void {
......@@ -2600,7 +2600,3 @@ fn ignoreSigpipe() void {
26002600 };
26012601 posix.sigaction(posix.SIG.PIPE, &act, null);
26022602 }
2603-
2604-test {
2605- _ = ipc;
2606-}
+1, -0
......@@ -2,4 +2,5 @@ comptime {
22 _ = @import("main.zig");
33 _ = @import("util.zig");
44 _ = @import("socket.zig");
5+ _ = @import("ipc.zig");
56 }