Ensure child processes are killed when the parent exits
Makes sure child processes are cleaned up (killed) when the parent process exits.
npm install kill-on-exit --save
var spawn = require("child_process").spawn;
var killOnExit = require("kill-on-exit");
var child = spawn("long-process");
killOnExit(child);
BSD 2 Clause