fix(run): a run takes what is left below it down on its way out

Its subreaper status makes a daemon a git call started its child; at
exit it goes, as freeze's do. Never a process the run did not start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jorijn van der Graaf 2026-10-31 15:47:37 +01:00
commit 7eccfd3b45
Signed by: jorijnvdgraaf
GPG key ID: 2937E59CDCC1BCFB

View file

@ -2187,6 +2187,9 @@ namespace Crafter::Review::Run {
watcher.request_stop(); watcher.request_stop();
watcher.join(); watcher.join();
Current = nullptr; Current = nullptr;
// Whatever is left below this subreaper - a daemon a git call
// started - goes with it; never a process it did not start.
Process::KillDescendants();
return code; return code;
} }
} }