fix(smartexit): use native OS methods to kill process trees; remove tree-kill dependency

This commit is contained in:
2026-03-04 17:55:47 +00:00
parent 76225c6b9f
commit 28a09f63b2
6 changed files with 40 additions and 24 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-03-04 - 2.0.3 - fix(smartexit)
use native OS methods to kill process trees; remove tree-kill dependency
- Replaced tree-kill usage with taskkill on Windows and process.kill(-pid) on POSIX.
- Removed tree-kill package from dependencies and removed its export from plugins.
- Handle ESRCH (no such process/group) as non-error when killing process groups.
- Ensure trackedPids is cleared when a child process is removed.
## 2026-03-03 - 1.1.1 - fix(shutdown)
kill full child process trees and add synchronous exit handler to force-kill remaining child processes