Exit/Reload event atom


#1

Hello,

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 ?

Regards,
Peekmo


#2

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.


#3

In fact, it works with deactivate. Thank you.