mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
fix: allow unused detach flag on non-unix spawns
This commit is contained in:
@@ -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:?}"
|
||||
|
||||
Reference in New Issue
Block a user