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

Shut down the Tribler Core process if the GUI process crashes. #6995

Merged

Conversation

kozlovsky
Copy link
Contributor

This PR fixes #6994 by adding GuiProcessWatcher and GuiProcessWatcherComponent.

With this PR, GUI passes an additional environment variable to Core with the PID of the GUI process. If GUI PID was passed to Core, it starts watching GUI process state with periodical checks. If the GUI process stops, the watcher calls session.shutdown_event.set() to shut down the Core process.

@kozlovsky kozlovsky force-pushed the fix/core_process_termination_on_gui_crash branch from 5caa12e to 7cfa04f Compare August 12, 2022 11:01
@kozlovsky kozlovsky marked this pull request as ready for review August 12, 2022 12:07
@kozlovsky kozlovsky requested review from a team and xoriole and removed request for a team August 12, 2022 12:07
@kozlovsky kozlovsky merged commit 89aed5e into Tribler:main Aug 12, 2022
@kozlovsky kozlovsky deleted the fix/core_process_termination_on_gui_crash branch August 12, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Tribler Core process continues to work after the GUI process crash
2 participants