fix(tools): kill process group when bash task aborts - #41
Conversation
PR Review
PR: #41 Merge confidence: 4.5/5 Suggested GitHub PR bodyForeground RAII What changed
1 commit: +86 / −2. Background + interactive paths untouched. Checks run (read-only)
Regressions?No functional regression on the covered path. Foreground success still kills the group when the shell exits ( Intentional behavior: cancelling a foreground bash now SIGKILLs the whole process group, including Remaining risks (not blockers):
Migrations?No. Prefs/history SQLite ( Merge checklist
Confidence bumps
The leak itself is covered: Drop of the foreground future now |
Summary
Root cause
Command::kill_on_droponly terminates the spawned shell. When the tool future was aborted, Node descendants could survive with an active event loop and continue consuming memory.Validation
cargo fmt --allcargo test tools::bash::testscargo checkgit diff --check