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

propagate errors from tokio::tasks and make am windows compatible #36

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

mellowagain
Copy link
Member

fixes #34
fixes #35


Ok(())
_ = tokio::signal::ctrl_c() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is already working fine in the current version, which also propagates the sigint to the prometheus process. So we can probably get rid of this. (though that was in the tokio::spawn situation)

Copy link
Member Author

Choose a reason for hiding this comment

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

this is cuz select will abort all other tasks when one finishes, so we want to await the ctrl c signal so we have correct shutting down

@mellowagain mellowagain merged commit 2589d7a into main Jun 20, 2023
@mellowagain mellowagain deleted the select+exe branch June 20, 2023 12:12
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.

windows compatibility Implement proper error propagation
2 participants