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

fix process orphans #119

Merged
merged 3 commits into from Oct 29, 2020
Merged

fix process orphans #119

merged 3 commits into from Oct 29, 2020

Conversation

seebye
Copy link
Owner

@seebye seebye commented Oct 20, 2020

Deal with the orphans creation described in https://github.com/seebye/ueberzug/issues/117

In some situations worker processes turned into orphans.
To fix this (1.) a new session is created for the canvas process and
it's killed by its pgid if it won't exit within a second
(if it's told to do so).
(2.) Also the missing shutdown call for the ProcessPoolExecutor was added.
If the canvas process exited unexpectly os.getpgid will throw an
ProcessLookupError,
so we need to catch it.
@seebye seebye merged commit 5d5a99d into master Oct 29, 2020
@seebye seebye deleted the orphans branch October 29, 2020 23:55
Repository owner locked and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant