sindresorhus/fkill




Do you want to work on this issue?
You can request for a bounty in order to promote it!
Kill tree (all sub-processes) #21
borekb posted onGitHub
Typical use case is starting a process with multiple sub-processes and then wanting to killing them all:
const child = require('child_process').exec("node -e 'while (true);'");
child.kill(); // will not work
It's been implemented for Windows in https://github.com/sindresorhus/fkill/pull/20, would be nice to have this functionality cross-platform.