diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 15:13:48 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 15:34:15 -0300 |
| commit | fb7e632248c599a70689cd0451392c8a890044ee (patch) | |
| tree | 8fafe9377885a50f2e49c0710f37c5268c980e42 /dev/glide.zig | |
| parent | 0957cd7ad097c83a591e315f2e261996e72ea856 (diff) | |
| download | pardes-fb7e632248c599a70689cd0451392c8a890044ee.tar.gz pardes-fb7e632248c599a70689cd0451392c8a890044ee.zip | |
daemon: the reader hands no note to a session loop that ended: it took the loop's address once, at its start, and ran on until main's daemon.quit joined it, after Loop.run returned, so a client connecting (or a shell adopted, or a daemon relinked) while a session ended was handed to the loop's dead frame (l.peers, l.inbox, deinit'ed); now the reader hands each note under a lock to where notesTo says (daemon.give), the session loop sets it after its frontend opened and clears it (notesTo(null)) before its peers, frontend and queue go, and a note with nowhere to go is let go, its connections closed; test "a client's connection the daemon hands on after the session's loop ended reaches no loop: it is closed" (a fake daemon on a socketpair link): "expected 0, found 1" (the ended loop handed it) on the base, passes now; a user could hit it: a pardes attach (or Adopt's answer) in the moment its session exits: a write into a dead stack frame (a crash or a corrupted teardown)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/glide.zig')
0 files changed, 0 insertions, 0 deletions
