How do i make sure all child_process are killed when the parent process is killed. I have something like the below one.
Even when the node process is kill i see that FFMPEG continues to run and the out.avi is generated. How can i stop FFMPEG from running after the node process exits.
var args = "ffmpeg -i in.avi out.avi"
child_process.exec(args , function(err, stdout,stderr){});
child_process.exec(args , function(err, stdout,stderr){});
a
finishes before the main process triggers theexit
event and thea.kill()
gets called. Won't this have the possibility that it could kill another process that was reassigned to the same PID thata
used to be? How do you prevent this? – Coastwise