fix: allow unused detach flag on non-unix spawns

This commit is contained in:
Alex Kotliarskyi
2026-01-16 18:39:38 -08:00
parent 68b1e1a93d
commit ca61481f9b

View File

@@ -44,7 +44,7 @@ pub(crate) async fn spawn_child_async(
sandbox_policy: &SandboxPolicy,
stdio_policy: StdioPolicy,
env: HashMap<String, String>,
detach_from_tty: bool,
#[cfg_attr(not(unix), allow(unused_variables))] detach_from_tty: bool,
) -> std::io::Result<Child> {
trace!(
"spawn_child_async: {program:?} {args:?} {arg0:?} {cwd:?} {sandbox_policy:?} {stdio_policy:?} {env:?}"