From 8c2b6724dab918f8815d90b4cd12d8e49bac4d9c Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 22 Nov 2024 13:07:34 +0100 Subject: [PATCH] dont inherit stdio in command function --- src/std_fns.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/std_fns.rs b/src/std_fns.rs index 8c7d1e6..272768a 100644 --- a/src/std_fns.rs +++ b/src/std_fns.rs @@ -816,9 +816,9 @@ pub fn command(stack: &mut Stack) -> OError { Value::Long( process::Command::new(&args[0]) .args(&args[1..]) - .stdin(Stdio::inherit()) - .stdout(Stdio::inherit()) - .stderr(Stdio::inherit()) + .stdin(Stdio::null()) + .stdout(Stdio::null()) + .stderr(Stdio::null()) .spawn() .map_err(|x| stack.error(ErrorKind::IO(x.to_string())))? .id() as i64,