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();