]> Cypherpunks repositories - gostls13.git/commit
pkg/go/ast: Avoid doing zero-length writes to the fd.
authorAkshat Kumar <seed@mail.nanosouffle.net>
Sun, 23 Sep 2012 22:30:28 +0000 (08:30 +1000)
committerRob Pike <r@golang.org>
Sun, 23 Sep 2012 22:30:28 +0000 (08:30 +1000)
commit659d1df1bcd44ec6bb92f9592a8c92670d862d3c
tree3c7fadcf6df35e571c709a58a8dfa13b1f8f2b00
parent3ec7be64c55d4bc0de27889a2a8b47181317a193
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
src/pkg/go/ast/print.go