diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 14:29:10 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 14:55:38 -0300 |
| commit | e3d0daa9f89f41b41b7d05d510db553cbd8816d9 (patch) | |
| tree | 6602e8aca69ec3c160021d4975c43456d38801df /core/Plumb.zig | |
| parent | 8a8ce0a6740e9a98ea37a70d401c3ba3fffe0ee1 (diff) | |
| parent | 27837e6345b51ceb2ceaaee58fd593024feb07c8 (diff) | |
| download | pardes-e3d0daa9f89f41b41b7d05d510db553cbd8816d9.tar.gz pardes-e3d0daa9f89f41b41b7d05d510db553cbd8816d9.zip | |
integration: a client that joins a session with 9P work under way has its 9P state, on the budget as a count and the window's pair: pardes-faults-4 (the open records and each pane's 9P state in the dumps and the digest, dropped again at a revive on a new host; hand-written digests so a step's counts do not move) and pardes-merge39; two conflicts, both the wire's version: the pair's close byte and the 9P state each took 24 on their own lines: the close byte keeps 24, the 9P state is 25, abi/wire.zig's version and test/daemon.py's WIRE are 25; tui core-test 871/1028 (157 skipped), shell-test 1070/1073, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger (reorg/merge40)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Plumb.zig')
| -rw-r--r-- | core/Plumb.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Plumb.zig b/core/Plumb.zig index f51ddace..e1b09e69 100644 --- a/core/Plumb.zig +++ b/core/Plumb.zig @@ -593,7 +593,7 @@ pub fn portName(p: *const Pardes, index: u8) ?[]const u8 { /// Whether a program reads port `index` (an open of its file): the /// authority's 9P state, asked through the tape. fn portRead(p: *Pardes, index: u8) bool { - for (&p.fs.opens) |*o| if (o.node != 0 and o.what == .port and o.what.port.index == index) return true; + for (p.fs.opens[0..p.fs.opens_len]) |*o| if (o.node != 0 and o.what == .port and o.what.port.index == index) return true; return false; } @@ -611,7 +611,7 @@ fn enqueue(p: *Pardes, q: *events.Queue, lead: []const u8, m: *const Msg) bool { /// A copy of `m` to every reader of port `index` (plumber(4)'s queuesend: /// every fid open when it was sent), each read held for one answered. fn fanOut(p: *Pardes, index: u8, m: *const Msg) void { - for (&p.fs.opens) |*o| if (o.node != 0 and o.what == .port and o.what.port.index == index) { + for (p.fs.opens[0..p.fs.opens_len]) |*o| if (o.node != 0 and o.what == .port and o.what.port.index == index) { if (!enqueue(p, &o.what.port.queue, "", m)) { var said: Kind.Buf(160) = .{}; events.notePath(p, "err -", said.print("plumb/{s}: a message of {d} bytes is over a reader's {d} KiB, not sent to it", .{ portName(p, index).?, m.data.len, events.queue_cap / 1024 })); |
