diff --git a/src/child.rs b/src/child.rs index 7f19e3321..2b6323544 100644 --- a/src/child.rs +++ b/src/child.rs @@ -140,6 +140,8 @@ impl Child { /// output into this `Result` it is necessary to create new pipes between parent and /// child. Use `stdout(Stdio::piped())` or `stderr(Stdio::piped())`, respectively. pub async fn wait_with_output(mut self) -> Result { + self.stdin().take(); + let child_stdout = self.stdout.take(); let stdout_read = async move { let mut stdout = Vec::new();