Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@mellowagain
Copy link
Contributor

fixes #34
fixes #35

biased;

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
Contributor 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

3 participants