process spawn is not killed when the electronjs app is terminated.
Is there a way to access all child processes opened by electron js?
Thanks for listening
const proc = require( "child_process" ).spawn( "C:\\my-electron-app\\dist\\mysite\\mysite.exe runserver localhost:8000 --noreload", {shell: true} );
app.on(
"window-all-closed",
function()
{
process.kill(proc.pid)
app.quit();
}
);
Includes an image. In console.log I showed the PID of the spawn child process return. And it is not shown in the list of windows processes.
