I am spawning a long-running process using Theia’s BackendApplicationContribution by overriding the initialize method.
I have also added ‘beforeExit’ and ‘SIGINT’ event listeners to shut the application down when we close the theia process. But these listeners seem to not get fired in windows.
Is there any way to terminate a spawned process in Windows? Or any other generic way to do cleanup operations(sync/async) before exiting?
PS. I am talking about the electron application here.