DeadPackets / HackPi

A NodeJS server meant to turn a Raspberry Pi into an all out hacking device
MIT License
18 stars 5 forks source link

Kill child_processes on demand #17

Open DeadPackets opened 7 years ago

DeadPackets commented 7 years ago

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