You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(host-kit): a guarded group write answers the way process.kill does
The default mode returned `false` for a write the kernel took, and the comment above it described that
as a group with no reachable members. `process.kill` has three answers to a negative pid and none of
them is `false`: `true` once the write is accepted, `ESRCH` when no member is left, `EPERM` when a
member belongs to someone else. The assertions survived because the seam reads the throw and ignores
the return value, so nothing was wrong with the behavior — but the next test written against this
helper would copy an answer the kernel never gives, and the comment would keep promising a state the
seam cannot observe.
The mode is now `delivered` and returns `true`, and `EPERM` is a mode of its own, which is also the
test that branch never had: `signalProcessGroupBestEffort` has one catch for both errno values, and
only `ESRCH` was ever exercised. Making that catch rethrow `EPERM` turns the new test red and nothing
else.
0 commit comments