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

Signal handling using the signal-hook crate #50

Merged
merged 1 commit into from
May 27, 2019
Merged

Conversation

tony-iqlusion
Copy link
Member

Adds an optional (Unix-only) background thread for receiving signals and invoking the corresponding signal handler on the given application. Signal reception is handled by the signal-hook crate.

The signal handler takes a mutable reference to the Application, allowing it to do things like reload configuration at runtime, reinitialize components, restart threads, etc.

Adds an optional (Unix-only) background thread for receiving signals and
invoking the corresponding signal handler on the given application.

The signal handler takes a mutable reference to the `Application`,
allowing it to do things like reload configuration at runtime,
reinitialize components, restart threads, etc.
@tony-iqlusion tony-iqlusion merged commit af65c30 into develop May 27, 2019
@tony-iqlusion tony-iqlusion deleted the signal-hook branch May 27, 2019 18:15
@tony-iqlusion tony-iqlusion mentioned this pull request Jul 2, 2019
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.

None yet

1 participant