Commit 7472bbb1 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer: In the case of an error, close stdout/stderr writers

parent b64a2532
......@@ -65,6 +65,8 @@ type Communicator interface {
func (r *RemoteCmd) StartWithUi(c Communicator, ui Ui) error {
stdout_r, stdout_w := io.Pipe()
stderr_r, stderr_w := io.Pipe()
defer stdout_w.Close()
defer stderr_w.Close()
// Set the writers for the output so that we get it streamed to us
if r.Stdout == nil {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment