From b7f45b34abeb0b4d20b1c88c938e3175c29cf1ac Mon Sep 17 00:00:00 2001 From: zephyr Date: Mon, 18 Aug 2025 01:57:19 +0900 Subject: [PATCH] use correct condition --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 19ac3b7..a58878c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -56,7 +56,7 @@ struct Cli { #[arg(long)] http_basic: Option, - #[cfg(not(target_os = "windows"))] + #[cfg(unix)] /// Run process in background #[arg(short, long, default_value_t = false)] detached: bool, @@ -64,7 +64,7 @@ struct Cli { fn main() { let args = Cli::parse(); - #[cfg(not(target_os = "windows"))] + #[cfg(unix)] { if args.detached { let daemonize = daemonize::Daemonize::new();