summaryrefslogtreecommitdiff
path: root/src/gui/pet.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-29 13:27:52 -0300
committerGabriel Schneider <[email protected]>2026-10-29 14:27:36 -0300
commite9328a417ef82d72a73f5e3e7d182591616137de (patch)
tree48061dfa8cbf293f59006202539137d431f96860 /src/gui/pet.zig
parentf1f52054e3fe82f94697561d6fe9f9c14774f5de (diff)
downloadpardes-e9328a417ef82d72a73f5e3e7d182591616137de.tar.gz
pardes-e9328a417ef82d72a73f5e3e7d182591616137de.zip
9p_io.zig: a session's liveness is a flock on its socket's .lock, not a connect, which FreeBSD refuses to a full listen queue as to a dead socket
The owner holds `<socket>.lock` flocked from before it binds until after it unlinks (claim, release; the fatal-signal path unlinks it too). The startup sweep, the registry sweep, a registry entry's replacement and `taken` ask that lock: held is live, free is dead. They unlink only while holding it, so no new owner comes between the judging and the unlink, and two starters of one name are told apart by who took it. A socket with no lock, a pardes from before the locks, is still judged by a connect. The daemon's own start was already decided by its flock. The sweep test gains a live session whose socket refuses connects on every system (bound, not listening, its lock held) and a dead one's free lock, which goes with it; it passes on the FreeBSD box now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/gui/pet.zig')
0 files changed, 0 insertions, 0 deletions