mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
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:
committed by
Carl Lerche
parent
3486a61a0f
commit
61c4047c6a
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user