HackPi icon indicating copy to clipboard operation
HackPi copied to clipboard

Kill child_processes on demand

Open DeadPackets opened this issue 9 years ago • 0 comments

I found an example of how to do it but directly:

var proc = require('child_process').spawn('mongod');
proc.kill('SIGINT');

But we need to kill it globally, so we need to setup the global tracking array system first, then append the process variable to it so we can kill it on demand. #3

DeadPackets avatar Apr 11 '17 04:04 DeadPackets