packer/plugin: Don't wrap bytesBuffer in bufio, fixes GH-10

This commit is contained in:
Mitchell Hashimoto 2013-05-08 13:02:21 -07:00
parent 286f0aa91c
commit abb51ebb35
2 changed files with 1 additions and 6 deletions

View File

@ -11,8 +11,6 @@ import (
) )
func main() { func main() {
log.SetFlags(log.Ldate | log.Ltime | log.Llongfile)
commands := map[string]string { commands := map[string]string {
"build": "packer-build", "build": "packer-build",
} }

View File

@ -1,7 +1,6 @@
package plugin package plugin
import ( import (
"bufio"
"bytes" "bytes"
"errors" "errors"
"io" "io"
@ -152,9 +151,7 @@ func (c *client) Kill() {
<-done <-done
} }
func (c *client) logStderr(r io.Reader) { func (c *client) logStderr(buf *bytes.Buffer) {
buf := bufio.NewReader(r)
for done := false; !done; { for done := false; !done; {
if c.Exited() { if c.Exited() {
done = true done = true