fix(spawn): use detached:true so children are immune to terminal SIGINT

Children now get their own process group. Terminal Ctrl+C only reaches
the parent, which then does orderly tree-kill while children are still
alive and the process tree is intact.
This commit is contained in:
2026-03-04 00:49:29 +00:00
parent 181d352e21
commit d37071dae0
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@push.rocks/smartshell",
"private": false,
"version": "3.3.4",
"version": "3.3.5",
"description": "A library for executing shell commands using promises.",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",