dont inherit stdio in command function
This commit is contained in:
parent
e55a619862
commit
8c2b6724da
1 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue