Skip to content

Commit

Permalink
Update README about SIGHUP
Browse files Browse the repository at this point in the history
  • Loading branch information
Detegr committed Aug 10, 2021
1 parent 6baeeb3 commit 8233401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fn main() {
#### Try the example yourself
`cargo build --examples && target/debug/examples/readme_example`

## Handling SIGTERM
Add CtrlC to Cargo.toml using `termination` feature and CtrlC will handle both SIGINT and SIGTERM.
## Handling SIGTERM and SIGHUP
Add CtrlC to Cargo.toml using `termination` feature and CtrlC will handle SIGINT, SIGTERM and SIGHUP.
```
[dependencies]
ctrlc = { version = "3.0", features = ["termination"] }
Expand Down

0 comments on commit 8233401

Please sign in to comment.