summaryrefslogtreecommitdiff
path: root/runtime/session.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-20 18:08:49 -0300
committerGabriel Schneider <[email protected]>2026-11-20 18:08:49 -0300
commit4053e62a2aabd794db9075d93ebe57eec3f432a6 (patch)
treeb5a676e835b4df79f0670056a636410c97ffb8fd /runtime/session.zig
parente3d0daa9f89f41b41b7d05d510db553cbd8816d9 (diff)
parent6683e03a40c0bbd88dadf6bb30121d41e944207c (diff)
downloadpardes-4053e62a2aabd794db9075d93ebe57eec3f432a6.tar.gz
pardes-4053e62a2aabd794db9075d93ebe57eec3f432a6.zip
integration: a hang-up is a close and a session can be kept, on the 9P state a join carries: pardes-pair-3 (a session's state as the daemon hears it: attached, detached, pair or kept, carried through an Upgrade; a terminal client takes HUP and TERM itself and leaves with a goodbye that closes; ps shows (tty) for a pair and (tty, kept); the documents say what PARDES_PAIR is) and pardes-merge40, merged without a textual conflict; 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/merge41)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'runtime/session.zig')
-rw-r--r--runtime/session.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/session.zig b/runtime/session.zig
index 9c8446e3..8630495c 100644
--- a/runtime/session.zig
+++ b/runtime/session.zig
@@ -129,9 +129,8 @@ pub fn Loop(comptime Frontend: type) type {
l.peers.boundary(l.core);
// A pair's session with no daemon ends with its last link:
// nothing could attach to it again; with one, when its last
- // client closed its window (a close, not a loss), no Detach
- // typed in any.
- if (o.pair != null and l.peers.count() == 0 and (daemon.link < 0 or l.peers.closed)) break;
+ // client left with a close (not a loss) and it is not kept.
+ if (l.peers.count() == 0 and (l.peers.closed or (o.pair != null and daemon.link < 0))) break;
fe.sent();
upgrade.locate();
// Asked in the step (the word), done between steps: the