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

Make watcher shutdown as aw-qt parent process dies. #20

Merged
merged 5 commits into from
Jul 19, 2017

Conversation

nikanar
Copy link
Contributor

@nikanar nikanar commented Jul 18, 2017

ActivityWatch/aw-qt#19

This makes the child process (the watcher) check it's PPID, so that if ever its parent process dies (aw-qt), this one shutdowns also. 1 is PPID of init process, what PPIDs get set to when parents die (aka "the orphanage").

Sorry for the commit fluff, git still gets the better of me.

@johan-bjareholt
Copy link
Member

Great work! 👍

Are committing with another user than on GitHub or did someone else do the commits? Personally I don't care since it looks great anyway, but next time if you want to top the contributors list I would recommend setting your email in your git config to the same as your github account so the commits are linked to you.

Sorry for the commit fluff, git still gets the better of me.

No problem, it's a small PR so i can just squash and merge so they look like one complete commit later :)

@johan-bjareholt johan-bjareholt merged commit 61d13f1 into ActivityWatch:master Jul 19, 2017
@ErikBjare
Copy link
Member

Just a note: This has the same issue with PyInstaller as I mentioned in ActivityWatch/aw-watcher-afk#24

@nikanar
Copy link
Contributor Author

nikanar commented Jul 20, 2017

It's me, holding on wrong config files (fixed now). Thanks :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants