repos / zmx

session persistence for terminal processes
git clone https://github.com/neurosnap/zmx.git

commit
9a33769
parent
085fe3e
author
Eric Bower
date
2026-04-26 22:07:58 -0400 EDT
chore: cleanup
3 files changed,  +9, -14
M src/ipc.zig
+7, -9
 1@@ -245,15 +245,13 @@ pub fn probeSession(
 2     return error.Unexpected;
 3 }
 4 
 5-// ╔════════════════════════════════════════════════════════════════════╗
 6-// ║ WIRE PROTOCOL FREEZE — read before "fixing" any test below.        ║
 7-// ║                                                                    ║
 8-// ║ Changing these constants does not fix the test; it breaks every    ║
 9-// ║ running daemon for every user until they `pkill -f zmx`.           ║
10-// ║                                                                    ║
11-// ║ Need a new field?  → add a new `Tag` value (next free integer).    ║
12-// ║ Need to remove one? → don't. Reserve the integer, stop sending it. ║
13-// ╚════════════════════════════════════════════════════════════════════╝
14+//  WIRE PROTOCOL FREEZE — read before "fixing" any test below.
15+//
16+//  Changing these constants does not fix the test; it breaks every
17+//  running daemon for every user until they `pkill -f zmx`.
18+//
19+//  Need a new field?   → add a new `Tag` value (next free integer).
20+//  Need to remove one? → don't. Reserve the integer, stop sending it.
21 test "Info wire size is frozen" {
22     try std.testing.expectEqual(@as(usize, 552), @sizeOf(Info));
23     // packed struct{u8,u32} backs to u40 → @sizeOf rounds to 8, not 5.
M src/main.zig
+1, -5
 1@@ -2580,7 +2580,7 @@ fn wakeSignalPipe(_: i32, _: *const posix.siginfo_t, _: ?*anyopaque) callconv(.c
 2     std.c._errno().* = saved;
 3 }
 4 
 5-// std.posix.poll retries EINTR internally, so SA_RESTART is moot — neither
 6+// std.posix.poll retries EINTR internally, so SA_RESTART is moot -- neither
 7 // setting wakes the loop. The handler writes to sig_pipe instead; poll()
 8 // wakes on its read end.
 9 fn installWakeHandler(sig: u6) void {
10@@ -2600,7 +2600,3 @@ fn ignoreSigpipe() void {
11     };
12     posix.sigaction(posix.SIG.PIPE, &act, null);
13 }
14-
15-test {
16-    _ = ipc;
17-}
M src/test.zig
+1, -0
1@@ -2,4 +2,5 @@ comptime {
2     _ = @import("main.zig");
3     _ = @import("util.zig");
4     _ = @import("socket.zig");
5+    _ = @import("ipc.zig");
6 }