refactor: fold is_party_alive into party_conn_state
One liveness primitive instead of two. The PID argument was a vestige (format-checked, never probed, since the kill -0 removal); dropping it means a roster with a garbage SERVER_PID can no longer mask a live socket in host/moderation/role resolution.
This commit is contained in:
parent
be3fb049d2
commit
6b94255245
5 changed files with 51 additions and 88 deletions
|
|
@ -45,7 +45,7 @@ EOF
|
|||
[[ "$output" == *"no parties"* ]]
|
||||
}
|
||||
|
||||
# Cross-user discovery regression. Earlier revisions of is_party_alive
|
||||
# Cross-user discovery regression. Earlier revisions of party_conn_state
|
||||
# probed the PID with `kill -0`, which returns EPERM under POSIX semantics
|
||||
# when the caller can't signal the target — illumos, all BSDs, and macOS
|
||||
# honor that, so guests couldn't discover parties hosted by other users
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue