i use child process in my node app, most of the times everything works good, but sometimes i get exit code 12.
this is how i initiate process
const childProcess = require('child_process');
const child = childProcess.fork('Path to file');
child.send({data})
handling on exit:
child.on('exit', (code) => {
child.kill();
console.log (code)
)}
and i get "12",
any ideas? i dont know how to debug child process
Thanks!