Forgot a #[cfg(unix)] marker on install()
This commit is contained in:
parent
0e0d14b475
commit
d01da72e0b
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue