From c69d0956002cf52ac9b1447cee8b7f325f9e82db Mon Sep 17 00:00:00 2001 From: justarandomgeek Date: Fri, 13 Feb 2026 14:10:11 -0500 Subject: [PATCH] disable SIGHUP handler for windows --- radicle-httpd/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicle-httpd/src/lib.rs b/radicle-httpd/src/lib.rs index c6bdac1eb..0c395f45a 100644 --- a/radicle-httpd/src/lib.rs +++ b/radicle-httpd/src/lib.rs @@ -10,6 +10,7 @@ use std::str; use std::sync::Arc; use std::time::Duration; +#[cfg(unix)] use tokio::signal::unix::{signal, SignalKind}; use anyhow::Context as _; @@ -74,6 +75,7 @@ pub async fn run(options: Options) -> anyhow::Result<()> { let profile = Arc::new(profile); let ctx = api::Context::new(profile.clone(), web_config.clone(), &options); + #[cfg(unix)] tokio::spawn(async move { let mut sighup = signal(SignalKind::hangup()).expect("Failed to register SIGHUP handler");