signal: Add symbolic reexports for common signals

Means you don't have to import libc!

Closes alexcrichton/tokio-signal#1
This commit is contained in:
Alex Crichton
2018-09-10 11:29:55 -07:00
committed by Carl Lerche
parent 3486a61a0f
commit 61c4047c6a
+3
View File
@@ -96,6 +96,9 @@ struct SignalState {
tasks: Vec<(RefCell<Oneshot<()>>, mio::SetReadiness)>,
}
pub use self::libc::{SIGINT, SIGKILL, SIGTERM, SIGUSR1, SIGUSR2};
pub use self::libc::{SIGHUP, SIGQUIT, SIGPIPE, SIGALRM, SIGTRAP};
impl Signal {
/// Creates a new stream which will receive notifications when the current
/// process receives the signal `signum`.