summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd.rs b/src/cmd.rs
index efeb598..d158bfb 100644
--- a/src/cmd.rs
+++ b/src/cmd.rs
@@ -10,7 +10,8 @@ use std::{
pub fn run_cmd(mut cmd: Command, description: &str, output: Option<&mut Vec<u8>>) -> Result<bool> {
let spawn = |mut cmd: Command| {
// NOTE: The closure drops `cmd` which prevents a pipe deadlock.
- cmd.spawn()
+ cmd.stdin(Stdio::null())
+ .spawn()
.with_context(|| format!("Failed to run the command `{description}`"))
};