Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terminal-notifier doesn't exit on app quit (electron) #203

Open
apollolux opened this issue Sep 19, 2017 · 3 comments
Open

terminal-notifier doesn't exit on app quit (electron) #203

apollolux opened this issue Sep 19, 2017 · 3 comments

Comments

@apollolux
Copy link

Master as of commit 87242c1 (and npm releases before that when terminal-notifier was still a .app) do not exit the terminal-notifier process after an electron app quits. Don't know how much effect this will have on the system yet considering I only just started using master in my electron project and the previous 5.1.2 release version had the memory leaking terminal-notifier, but would like to bring this to your attention anyways.

Is ending the process something I have to handle in my app quit routine, or is it supposed to be handled by node-notifier automatically?

@kurisubrooks
Copy link
Collaborator

It's my understanding that the process is spawned when a notification needs to be sent, and is closed when it disappears. I'll file this as a bug while we await information from @mikaelbr

@mikaelbr
Copy link
Owner

There is no automatic closing of the sub process when the mother process quits. In most cases I don't think this is a problem, when terminal-notifier works properly – but is first noticeable due to the memory leak. If we were to handle this (that is if it's actually a problem), it would have to be handled by node-notifier internally by listening to sigterm and closing sub processes.

@charleskoehl
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants