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

Parallel kill on session quit #368

Open
wants to merge 2 commits into
base: kill-grace
Choose a base branch
from
Open

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented May 2, 2023

Branched from #367.

  • Split process cleanup into GC-specific finalisers and a global session-quit finaliser. The session finaliser collects all living processes and optionally their trees, and uses the new ps::ps_kill_parallel() to kill them in parallel with a grace delay controlled by cleanup_grace.

  • On creation, the cleanup info for the session finaliser is recorded in a doubly linked list that keeps track of living processes. It's doubly linked so that on GC of a process the node can be efficiently removed.

@lionel- lionel- changed the title Quit kill parallel Parallel kill on session quit May 2, 2023
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.

1 participant