summaryrefslogtreecommitdiffstats
path: root/tokio/src/signal
diff options
context:
space:
mode:
authorIvan Petkov <ivanppetkov@gmail.com>2020-09-24 10:51:46 -0700
committerGitHub <noreply@github.com>2020-09-24 10:51:46 -0700
commita1d0681cd2e581b1f6767126858d2f3d5d8992f5 (patch)
tree6f7b9aa5e4bd32854683a42753a145132e2ac7cc /tokio/src/signal
parent4dfbdbff7e260eb7f046a8dc91ec0c84ae7ab2e8 (diff)
process: do not publicly turn on `signal` when enabled (#2871)
This change will still internally compile any `signal` resources required when `process` is enabled on unix systems, but it will not publicly turn on the cargo feature
Diffstat (limited to 'tokio/src/signal')
-rw-r--r--tokio/src/signal/windows.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/signal/windows.rs b/tokio/src/signal/windows.rs
index b3f495b6..f638eed8 100644
--- a/tokio/src/signal/windows.rs
+++ b/tokio/src/signal/windows.rs
@@ -14,9 +14,9 @@ use std::convert::TryFrom;
use std::io;
use std::sync::Once;
use std::task::{Context, Poll};
-use winapi::shared::minwindef::*;
+use winapi::shared::minwindef::{BOOL, DWORD, FALSE, TRUE};
use winapi::um::consoleapi::SetConsoleCtrlHandler;
-use winapi::um::wincon::*;
+use winapi::um::wincon::{CTRL_BREAK_EVENT, CTRL_C_EVENT};
#[derive(Debug)]
pub(crate) struct OsStorage {