@rustlang Hey #rust folks! What's the best way to handle unix signals?
i'm finding the nix docs rather lacking: https://docs.rs/nix/0.13.0/nix/sys/signal/index.html …
or perhaps i'm just… not finding it rusty enough?
(such as, please look at signal(3p)
)
-
Show this thread
@MichalVaner's signal-hook crate is definitely the way to go. My favorite way to use it is with channels: https://github.com/BurntSushi/chan-signal#this-crate-has-reached-its-end-of-life-and-is-now-deprecated … --- But the API should support any use case and can plug into tokio.
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.