]> Cypherpunks repositories - gostls13.git/commit
pipe: implementation #3; this time for sure!
authorRuss Cox <rsc@golang.org>
Tue, 27 Apr 2010 17:17:17 +0000 (10:17 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 27 Apr 2010 17:17:17 +0000 (10:17 -0700)
commitcc62bed075ed2a7d1f65f2d65e55af1ffab7cdba
treed382549b3fe6ed0a062c0487cfb521f148a864b1
parent28c6305a0e83293e53d3d4aeddc24ada1c198398
pipe: implementation #3; this time for sure!
Added goroutine; got simpler.

Fixes deadlock when doing Read+Close
or Write+Close on same end.

R=r, cw
CC=golang-dev
https://golang.org/cl/994043
src/pkg/io/pipe.go
src/pkg/io/pipe_test.go