]> Cypherpunks repositories - gostls13.git/commit
log/syslog: fix deadlock in test
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 24 May 2013 14:35:48 +0000 (18:35 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 24 May 2013 14:35:48 +0000 (18:35 +0400)
commit0806c97209505dc48dcca3bb4bbe05695d1a3dd3
tree633914c8408e066173e7f17417ec680f04c2457d
parent2ca589d494ee8dc428bd5ce93603f373b8554e5b
log/syslog: fix deadlock in test
The problem was that server handlers block on done<-,
the goroutine that reads from done blocks on count<-,
and the main goroutine that is supposed to read from count
waits for server handlers to exit.
Fixes #5547.

R=golang-dev, dave, bradfitz
CC=golang-dev
https://golang.org/cl/9722043
src/pkg/log/syslog/syslog_test.go