mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-31 00:40:18 +00:00
Close stdin for child-processes, closes #13
This commit is contained in:
1 parent
984cec72d5
commit
2ab118ddb9
1 file changed
+1
@@ -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()?;
|
||||
|
||||
Reference in new issue
Block a user