Signal hook only on non-Windows
This commit is contained in:
parent
33a171147d
commit
ab0225e02f
1 changed files with 1 additions and 0 deletions
|
|
@ -359,6 +359,7 @@ fn main() -> anyhow::Result<()> {
|
|||
.build()?;
|
||||
|
||||
let token = tokio_util::sync::CancellationToken::new();
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
{
|
||||
let token = token.clone();
|
||||
use signal_hook::{consts::SIGINT, consts::SIGTERM, iterator::Signals};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue