summaryrefslogtreecommitdiff
path: root/test/chan
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-08-04 16:29:22 -0700
committerRob Pike <r@golang.org>2008-08-04 16:29:22 -0700
commitc81f70c85a12cb695ac5e7ef2aa67c5b9d62601c (patch)
treecccf898c10a75ce21658d129f0fa4e557740f9f3 /test/chan
parentd30245c9da8d5cb62983c3bdf4d86a151a2e87de (diff)
downloadgo-c81f70c85a12cb695ac5e7ef2aa67c5b9d62601c.tar.gz
fix bug - need to read final message in daisy chain to avoid hang
R=rsc OCL=13840 CL=13840
Diffstat (limited to 'test/chan')
-rw-r--r--test/chan/fifo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/chan/fifo.go b/test/chan/fifo.go
index 6112b3cd6..d6d6d704a 100644
--- a/test/chan/fifo.go
+++ b/test/chan/fifo.go
@@ -45,6 +45,7 @@ func SynchFifo() {
for i := 0; i < N; i++ {
ch -< i
}
+ <-in
}
func main() {