mirror of
https://github.com/xcat2/xcat-dep.git
synced 2026-11-30 06:12:16 +00:00
429d993d5414c538cbf486e07ddff177ba60f341
The ownership identity is one process. What a lock protects outlives it: a build wrapper starts each command in its OWN process group, so SIGKILL on the wrapper leaves that group running. An owner proven dead therefore says nothing about the work it started, and recovery admits a second writer. No check covered it, because every holder the existing checks kill has no worker under it. attach, detach and live_workers arrive here with the checks that drive them. A caller records each process group it starts, and a group is gone only when kill(0, -pgid) answers ESRCH, which is the test the build wrapper's own cancellation path already uses before it releases. BOTH halves are asserted, and the second is the one that keeps the first honest: a lock that recovers nothing at all satisfies "the second build stays blocked" perfectly. So the worker exits and the same lock must then be recovered. Three more checks pin what "the group" means. A group outlives its leader, because children inherit it, so a check reaps the leader and asserts the group still counts as live. detach must refuse while any process is in the group, which makes the retention a property of what is on disk rather than of which call site remembered to run. And an exclusive claim on the root does not override a live group: the claim asserts no build is running, and a live group is evidence one is. Against the unfixed predicate 8 of the 75 checks fail. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
Description
No description provided
Languages
Perl
79.3%
JavaScript
6.3%
C
3.9%
Shell
3.1%
SQLPL
2%
Other
5.2%