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(
|
Value::Long(
|
||||||
process::Command::new(&args[0])
|
process::Command::new(&args[0])
|
||||||
.args(&args[1..])
|
.args(&args[1..])
|
||||||
.stdin(Stdio::inherit())
|
.stdin(Stdio::null())
|
||||||
.stdout(Stdio::inherit())
|
.stdout(Stdio::null())
|
||||||
.stderr(Stdio::inherit())
|
.stderr(Stdio::null())
|
||||||
.spawn()
|
.spawn()
|
||||||
.map_err(|x| stack.error(ErrorKind::IO(x.to_string())))?
|
.map_err(|x| stack.error(ErrorKind::IO(x.to_string())))?
|
||||||
.id() as i64,
|
.id() as i64,
|
||||||
|
|
Loading…
Add table
Reference in a new issue