From 202220034e903ef8de2db8792029c229eade8689 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 5 Oct 2016 08:57:51 -0700 Subject: [PATCH] Add symbolic reexports for common signals Means you don't have to import libc! Closes #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`.