From: Rob Pike Date: Mon, 4 Aug 2008 23:29:22 +0000 (-0700) Subject: fix bug - need to read final message in daisy chain to avoid hang X-Git-Tag: weekly.2009-11-06~3372 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f439299035bbdb4ac7c1c684214b7bf8b4347474;p=gostls13.git fix bug - need to read final message in daisy chain to avoid hang R=rsc OCL=13840 CL=13840 --- diff --git a/test/chan/fifo.go b/test/chan/fifo.go index 6112b3cd6f..d6d6d704a2 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() {