Forgot a #[cfg(unix)] marker on install()

This commit is contained in:
Matt Green 2016-10-24 09:55:00 -04:00
parent 0e0d14b475
commit d01da72e0b
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ lazy_static! {
/// On Unix platforms, mask reception of SIGINT/SIGTERM, spawn a thread,
/// and sigwait on those signals to safely relay them.
#[cfg(unix)]
pub fn install() -> Receiver<()> {
use std::thread;
use nix::sys::signal::{SigSet, SIGTERM, SIGINT};