diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-04 23:51:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 09:54:56 -0300 |
| commit | 2ffc4abedcef7f077ebc7290b653415243da0975 (patch) | |
| tree | 8858b8ee8bd61234a305df359e9ef193f6085e29 /src/main.zig | |
| parent | 617cdcc8999cefdfd785b80026805cef51d96b08 (diff) | |
| download | pardes-2ffc4abedcef7f077ebc7290b653415243da0975.tar.gz pardes-2ffc4abedcef7f077ebc7290b653415243da0975.zip | |
processes: small ones (main's version text from upgrade.version_line and waitForDel's unused io; daemon's find returns null with its words, drop takes the slot alone, send, recv, Got and setName are private; replica's Joining is the daemon's and PARDES_REPLICA_LAG_KB, which nothing sets, goes; host_io's dead line variable; Handover's own readdir is std.c's)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main.zig b/src/main.zig index 58f9541a..3dec406c 100644 --- a/src/main.zig +++ b/src/main.zig @@ -228,8 +228,7 @@ fn forwardWords(err: anyerror, buf: []u8) []const u8 { /// pane `path` landed in (the one it already had, if open), then /log /// followed on one connection until that pane's `del` -- exit 0 -- or the /// connection ends with the session -- exit 1. -fn waitForDel(io: std.Io, gpa: std.mem.Allocator, dial: []const u8, path: []const u8, known: ?u32) noreturn { - _ = io; +fn waitForDel(gpa: std.mem.Allocator, dial: []const u8, path: []const u8, known: ?u32) noreturn { // The pane this launch made (a name not there yet), or the one its // look answered, is known by its serial; one the look answered none // for is found by its file. Found by none after the look went there, @@ -319,10 +318,7 @@ fn die(io: std.Io, comptime fmt: []const u8, args: anytype) noreturn { /// The second line is what a replica's build must share with its session's /// (wire.zig `semantics`). -const version_text = (if (pardes.commit) |c| - "pardes " ++ pardes.version ++ " (" ++ c ++ ")\n" -else - "pardes " ++ pardes.version ++ "\n") ++ std.fmt.comptimePrint("semantics {x:0>16}\n", .{@import("wire.zig").semantics}); +const version_text = upgrade.version_line ++ "\n" ++ std.fmt.comptimePrint("semantics {x:0>16}\n", .{@import("wire.zig").semantics}); const nested_text = \\pardes: this shell is already inside pardes, and a pardes inside a pardes @@ -730,7 +726,7 @@ fn nativeMain(std_init: std.process.Init) !void { Refuse.with(init.io, word, err); }; } - if (wait) waitForDel(init.io, arena, parent.dial, path, made_serial); + if (wait) waitForDel(arena, parent.dial, path, made_serial); return; } if (resuming) positional = null; |
