fix(windows): improve 2nd shutdown monitor

This commit is contained in:
Ruben Fiszel
2025-10-22 08:42:36 +00:00
parent f4f8425b56
commit ad53ca609e
+4 -5
View File
@@ -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")
},
}