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

pull/211/merge
Mitchell Hashimoto 13 years ago
parent 1c5e9848b5
commit 17acee653b

@ -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 {

Loading…
Cancel
Save