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

Linux: renable use of process groups #8009

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mook-as
Copy link
Contributor

@mook-as mook-as commented Dec 25, 2024

This adds code to manually set a process group on Linux only, and to re-enable the use of process groups to terminate processes on shutdown.

Fixes #7653

On Linux, manually set the process group for the main Electron process to
its pid so that we can use it to terminate any processes we spawn as part
of extensions.

Note that this happens after Electron has started other processes; hence
some of the Electron-internal processes will have the old process group.
This is not an issue as they will go away once the main process does.

Signed-off-by: Mark Yen <[email protected]>
This reverts commit ea31ee9.  Now that we
manually sets process groups on Linux (in the previous commit), we can
turn its use back on.

Signed-off-by: Mark Yen <[email protected]>
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.

Factory reset: stop all child processes
1 participant