From 2ab118ddb93ed26e4bcc38afec25a1a2e7b1f31b Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 14 Jan 2018 12:15:15 +0100 Subject: [PATCH] Close stdin for child-processes, closes #13 --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 6c3fd29..bb5363c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -50,6 +50,7 @@ fn time_shell_command(shell_cmd: &str) -> io::Result { let status = Command::new("sh") .arg("-c") .arg(shell_cmd) + .stdin(Stdio::null()) .stdout(Stdio::null()) .stderr(Stdio::null()) .status()?;