From 4c8be5400d4fe2069601c59638bf48944bd8ae6c Mon Sep 17 00:00:00 2001 From: atlas Date: Wed, 18 Nov 2026 03:28:12 +0100 Subject: [PATCH] hive-c0re: wait on the shared shutdown_signal --- hive-c0re/src/main.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hive-c0re/src/main.rs b/hive-c0re/src/main.rs index af73b613b..63341f285 100644 --- a/hive-c0re/src/main.rs +++ b/hive-c0re/src/main.rs @@ -385,17 +385,7 @@ async fn cmd_serve( let coord_sig = coord.clone(); tokio::select! { res = server::serve(socket, coord) => { res? } - _ = tokio::signal::ctrl_c() => { - tracing::info!("SIGINT received — requesting shutdown"); - coord_sig.request_shutdown(); - } - () = async { - let mut sig = tokio::signal::unix::signal( - tokio::signal::unix::SignalKind::terminate() - ).expect("failed to install SIGTERM handler"); - sig.recv().await; - } => { - tracing::info!("SIGTERM received — requesting shutdown"); + () = swarm_secret_client::shutdown_signal() => { coord_sig.request_shutdown(); } }