fix(lifecycle): use process group kill (-pid) in handleExit safety net

With detached:true children, the synchronous exit handler must kill
the entire process group, not just the direct PID.
This commit is contained in:
2026-03-04 00:48:38 +00:00
parent a623ac5fe4
commit 76225c6b9f
2 changed files with 11 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartexit",
"version": "2.0.1",
"version": "2.0.2",
"private": false,
"description": "A library for managing graceful shutdowns of Node.js processes by handling cleanup operations, including terminating child processes.",
"main": "dist_ts/index.js",