mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-12 00:06:14 +00:00
fix(windows): improve 2nd shutdown monitor
This commit is contained in:
@@ -207,18 +207,17 @@ pub async fn shutdown_signal(
|
||||
#[cfg(any(target_os = "linux", target_os = "macos"))]
|
||||
tokio::select! {
|
||||
_ = terminate() => {
|
||||
tracing::info!("2nd shutdown monitor received terminate");
|
||||
tracing::error!("2nd shutdown monitor received terminate");
|
||||
},
|
||||
_ = tokio::signal::ctrl_c() => {
|
||||
tracing::info!("2nd shutdown monitor received ctrl-c");
|
||||
tracing::error!("2nd shutdown monitor received ctrl-c");
|
||||
},
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "linux", target_os = "macos")))]
|
||||
tokio::select! {
|
||||
_ = tokio::signal::ctrl_c() => {},
|
||||
_ = rx.recv() => {
|
||||
tracing::info!("2nd shutdown monitor received killpill");
|
||||
_ = tokio::signal::ctrl_c() => {
|
||||
tracing::errr!("2nd shutdown monitor received ctrl-c")
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user