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( | |
| 245 | 245 | return error.Unexpected; | |
| 246 | 246 | } | |
| 247 | 247 | ||
| 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. | |
| 257 | 255 | test "Info wire size is frozen" { | |
| 258 | 256 | try std.testing.expectEqual(@as(usize, 552), @sizeOf(Info)); | |
| 259 | 257 | // 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 | |
| 2580 | 2580 | std.c._errno().* = saved; | |
| 2581 | 2581 | } | |
| 2582 | 2582 | ||
| 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 | |
| 2584 | 2584 | // setting wakes the loop. The handler writes to sig_pipe instead; poll() | |
| 2585 | 2585 | // wakes on its read end. | |
| 2586 | 2586 | fn installWakeHandler(sig: u6) void { |
| ... | ... | @@ -2600,7 +2600,3 @@ fn ignoreSigpipe() void { | |
| 2600 | 2600 | }; | |
| 2601 | 2601 | posix.sigaction(posix.SIG.PIPE, &act, null); | |
| 2602 | 2602 | } | |
| 2603 | - | ||
| 2604 | - | test { | |
| 2605 | - | _ = ipc; | |
| 2606 | - | } |
+1,
-0