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 shutdown of config monitor #7936

Merged
merged 1 commit into from May 3, 2024

Conversation

chrisduerr
Copy link
Member

This implements a coordinated shutdown of the config monitor by sending an event to its thread and waiting for the thread to terminate.

Copy link
Member

@kchibisov kchibisov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original issue was part of the notify crate spawning their own thread and there was no way to join it.

If you look into watchers, they do send Shutdown for example, but none of them actually wait/join anything, so it still kind of doesn't wait properly, I think.

I'm not sure that it matters much for this patch, since we generally want to join, it's just, not sure that the original FIXME is actually fixed.

This implements a coordinated shutdown of the config monitor by sending
an event to its thread and waiting for the thread to terminate.
@chrisduerr chrisduerr merged commit a77f77c into alacritty:master May 3, 2024
5 checks passed
@chrisduerr chrisduerr deleted the clean_monitor_shutdown branch May 3, 2024 20:20
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.

None yet

2 participants