From 61c4047c6a0bd87a5d7458e01abc90e8a285a947 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 5 Oct 2016 08:57:51 -0700 Subject: [PATCH] signal: Add symbolic reexports for common signals Means you don't have to import libc! Closes alexcrichton/tokio-signal#1 --- src/unix.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix.rs b/src/unix.rs index c6f67ec3c..204e152dd 100644 --- a/src/unix.rs +++ b/src/unix.rs @@ -96,6 +96,9 @@ struct SignalState { tasks: Vec<(RefCell>, 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`.