kill trees of processes
Kill all processes in the process tree, including the root process.
Kill all the children processes of the process with pid
1, including the process with pid
var kill = require'tree-kill';kill1 'SIGKILL';
Supports callbacks with error handling:
var kill = require'tree-kill';kill1 'SIGKILL'// Do things;
signal to all children processes of the process with pid
pid. Signal defaults to
For Linux, this uses
ps -o pid --no-headers --ppid PID to find the parent pids of
For Windows, this uses
'taskkill /pid PID /T /F' to kill the process tree.
With npm do:
npm install tree-kill