From f439299035bbdb4ac7c1c684214b7bf8b4347474 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 4 Aug 2008 16:29:22 -0700 Subject: [PATCH] fix bug - need to read final message in daisy chain to avoid hang R=rsc OCL=13840 CL=13840 --- test/chan/fifo.go | 1 + 1 file changed, 1 insertion(+) 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() {