the command's session is killed pass after pass until it is empty, so a process reaped a read late is not a tree left (martha#206) #215
Loading…
Reference in a new issue
No description provided.
Delete branch "pallas/206-reap-race"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #206.
Purpose (defect): the teardown check waits a bounded time for the kernel to reap before it calls a tree left, so a loaded runner no longer turns a green run red. It still never passes a tree that really is left.
What was wrong
endTheRunOnAPtykilled whatever was in the command's session in ONE pass, then waitedTHE_COMMANDS_SESSION_ENDS_MSwatching only. A launcher that forked in the moment between that pass's own read and its kills was never killed by anything: the wait watched it for the whole deadline and the final read called it a tree left —the command's session 8991 still runs 9105 after SIGKILL, from martha#200's task 15819 on a loaded runner.What it does now
endWhatIsLeftInpolls the session: each pass kills what it finds and looks again, until a pass finds nothing or the deadline passes. Only then does the final read decide.foundandsignalToare seams with the real finder and the real kill as defaults, as inend_what_names_a_directory.ts: a test that gives both never reads or signals a process of the machine it runs on.Done when
endWhatIsLeftIn.Red-first: with the end put back to one kill pass (the seams kept, so nothing real is signalled), case 2 fails with
the command's session still runs 999997 after SIGKILL: … is left for it; with the fix, the whole file is 3/3.a10a6e98) into pallas/206-reap-race