We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2717f49 commit d69e0d0Copy full SHA for d69e0d0
src/main.rs
@@ -25,8 +25,10 @@ fn main() {
25
.spawn()
26
.expect("Failed to execute process");
27
28
- let stdin = child.stdin.as_mut().expect("Failed to open stdin");
29
- stdin.write_all(dockerfile).unwrap();
+ let mut stdin = child.stdin.take().expect("Failed to open stdin");
+ std::thread::spawn(move || {
30
+ stdin.write_all(dockerfile).unwrap();
31
+ });
32
33
let status = child.wait().expect("failed to wait on child");
34
0 commit comments