How to reproduce?
- Pull master branch. The lastest commit is c164c77
- Make
- Start nsqd
- Kill nsqd
It panics and outputs "panic: close of closed channel".
#1319 (comment)
ad73d05#diff-4fb927abdfbf2db38da702b7131f128fa6d7e4cbd3d6d7baa3f4271eb2949956R471
These lines cause nsqd.Exit to be called twice. We can just simply use go-svc to handle all signals.