Exit/Reload event atom



I’m developing a package that create a process in background. The problem is that when atom exit or is reloaded, the background process is not killed, and I don’t how to kill it.

Is there an event to listen to be able to do that ? Or any advice on how to handle that kind of child processes ?



You shouldn’t need an Atom exit event. The package’s deactivate function should be sufficient. This takes care of the eventuality that your package is disabled or uninstalled as well as, I believe, Atom being exited or reloaded.


In fact, it works with deactivate. Thank you.