Close stdin for child-processes, closes #13

This commit is contained in:
sharkdp committed 2018-01-14 12:15:15 +01:00
1 parent 984cec72d5
commit 2ab118ddb9
1 file changed
+1
+1
View File
@@ -50,6 +50,7 @@ fn time_shell_command(shell_cmd: &str) -> io::Result<CmdResult> {
let status = Command::new("sh")
.arg("-c")
.arg(shell_cmd)
.stdin(Stdio::null())
.stdout(Stdio::null())
.stderr(Stdio::null())
.status()?;