]> Cypherpunks repositories - gostls13.git/commit
os: fix write on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Tue, 28 Oct 2014 21:44:59 +0000 (22:44 +0100)
committerDavid du Colombier <0intro@gmail.com>
Tue, 28 Oct 2014 21:44:59 +0000 (22:44 +0100)
commit5f54f06a359f2973521ff3f42899c12d3a6a7fed
treef97705e681056e55f41656343e2951f43dc625bf
parent982dcb249d107c1cab844912583c5eca0a07a00f
os: fix write on Plan 9

In CL 160670043 the write function was changed
so a zero-length write is now allowed. This leads
the ExampleWriter_Init test to fail.

The reason is that Plan 9 preserves message
boundaries, while the os library expects systems
that don't preserve them. We have to ignore
zero-length writes so they will never turn into EOF.

This issue was previously discussed in CL 7406046.

LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/163510043
src/os/file_plan9.go