fix(shutdown): kill full child process trees and add synchronous exit handler to force-kill remaining child processes

This commit is contained in:
2026-03-03 22:34:01 +00:00
parent 2e5b26c9cf
commit 1986b3a421
3 changed files with 39 additions and 16 deletions

View File

@@ -1,5 +1,13 @@
# Changelog
## 2026-03-03 - 1.1.1 - fix(shutdown)
kill full child process trees and add synchronous exit handler to force-kill remaining child processes
- Use tree-kill via SmartExit.killTreeByPid to terminate entire process trees (attempt SIGTERM, fallback to SIGKILL).
- Replace previous delayed/process.kill calls with awaitable tree-kill for more reliable termination.
- Add a synchronous process.on('exit') handler that force-kills any remaining child processes as a last-resort safety net.
- No public API changes; internal robustness/bugfix to shutdown behavior.
## 2025-12-15 - 1.1.0 - feat(smartexit)
Add silent logging option, structured shutdown logs, and killAll return stats