Kill a process group in node
To kill a process group in Node, just give process.kill
the PID of the group with a negative sign:
process.kill(-1337, 'SIGKILL');
To kill a process group in Node, just give process.kill
the PID of the group with a negative sign:
process.kill(-1337, 'SIGKILL');