Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const children = new Array(NODES).fill(0).map(()=>{
let child = CP.fork(childpath);
Log.captureSubProcess(child);
return child;
});