Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/bin/sccache-dist/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ impl CommandExt for Command {
.take()
.expect("Requested piped stdin but not present");
pipe(&mut stdin).context("Failed to pipe input to process")?;
// `process.stdin` was moved out by the `.take()` above, so
// `wait_with_output()` has no stdin left to close. Without this the write
// end stays open for the rest of the function and a child that reads to
// EOF never returns.
drop(stdin);
let output = process
.wait_with_output()
.context("Failed to wait for process to return")?;
Expand Down
Loading