| commit | 659d1df1bcd44ec6bb92f9592a8c92670d862d3c | [log] [tgz] |
|---|---|---|
| author | Akshat Kumar <seed@mail.nanosouffle.net> | Mon Sep 24 08:30:28 2012 +1000 |
| committer | Rob Pike <r@golang.org> | Mon Sep 24 08:30:28 2012 +1000 |
| tree | 3c7fadcf6df35e571c709a58a8dfa13b1f8f2b00 | |
| parent | 3ec7be64c55d4bc0de27889a2a8b47181317a193 [diff] |
pkg/go/ast: Avoid doing zero-length writes to the fd. After each line, ast.Print would do a zero-length write, which would hit the boundary condition on Plan 9 when reading over pipes (since message boundaries are preserved). This change makes sure we only do positive- length writes. R=rsc, rminnich, dave, r CC=golang-dev https://golang.org/cl/6558046