summaryrefslogtreecommitdiff
path: root/src/detached/client.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
committerGabriel Schneider <[email protected]>2026-10-23 17:11:12 -0300
commit19c83c90ebed4817acd7a12d4d225f5af0957bc1 (patch)
treee6ae660d2768063eb0c3ff0548c23077927de520 /src/detached/client.zig
parentef0de36bf473f22d37cc885054bf4eed98bf275f (diff)
downloadpardes-19c83c90ebed4817acd7a12d4d225f5af0957bc1.tar.gz
pardes-19c83c90ebed4817acd7a12d4d225f5af0957bc1.zip
One inbox for every host: the GUI's queue moves to host_io.Inbox, macOS and the detached server use it
The inbox takes a wake callback instead of an SDL flag and owns starting a pty reader and an LSP query and delivering their answers, status and pipe results. macOS gains the GUI's rule that only a pane's current reader and the current query get in; its reap now cancels the reader on the inbox before its future, since a reader blocked on a full queue cannot be canceled. The detached server's completion mailbox goes; its socket stays the loop's wakeup. Two old macOS ABI test compile errors fixed, so its unit tests run on Linux. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/detached/client.zig')
-rw-r--r--src/detached/client.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/detached/client.zig b/src/detached/client.zig
index cd17871e..617ae342 100644
--- a/src/detached/client.zig
+++ b/src/detached/client.zig
@@ -886,7 +886,7 @@ test "detached Restore keeps attached frontends and follows queued frames with a
try testing.expect(h.session.clients[c.slot].attached);
try testing.expectEqualStrings("saved body\n", h.core.panes[0].?.file.?.content);
try testing.expect(h.session.clients[c.slot].need_full);
- var wake = [_]libc.pollfd{.{ .fd = h.session.mailbox.wake[0], .events = poll_in, .revents = 0 }};
+ var wake = [_]libc.pollfd{.{ .fd = h.session.wake[0], .events = poll_in, .revents = 0 }};
try testing.expectEqual(@as(c_int, 1), libc.poll(&wake, wake.len, 0));
for (0..Harness.rounds) |_| {
if ((try h.pumpUntil(&c, .frame)).frame.kind == .full) break;