From 4a81673d0efe82fce0a7193b6b3e13b735e3462d Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Tue, 21 Apr 2026 20:30:07 +0200 Subject: [PATCH] node: Fix conditions for socket activation The implementation of socket activation requires not only the `systemd` feature, but also `socket2`. --- crates/radicle-node/src/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/radicle-node/src/runtime.rs b/crates/radicle-node/src/runtime.rs index 322ad521..799d8736 100644 --- a/crates/radicle-node/src/runtime.rs +++ b/crates/radicle-node/src/runtime.rs @@ -321,7 +321,7 @@ impl Runtime { Ok(()) } - #[cfg(all(feature = "systemd", target_os = "linux"))] + #[cfg(all(feature = "socket2", feature = "systemd", target_os = "linux"))] fn receive_listener() -> Option { // SAFETY: When `fd` is called, no other threads are spawned (yet). let fd = match unsafe { radicle_systemd::listen::fd("control") } { @@ -352,7 +352,7 @@ impl Runtime { } fn bind(path: PathBuf) -> Result { - #[cfg(all(feature = "systemd", target_os = "linux"))] + #[cfg(all(feature = "socket2", feature = "systemd", target_os = "linux"))] { if let Some(listener) = Self::receive_listener() { log::info!(target: "node", "Received control socket.");