cmd/alertmanager: use buffered channel for signal

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2018-11-14 16:41:32 +01:00
parent 72e6720bea
commit dae389f058

View File

@ -414,7 +414,7 @@ func main() {
go listen(*listenAddress, router, apiV2.Handler, logger)
var (
hup = make(chan os.Signal)
hup = make(chan os.Signal, 1)
hupReady = make(chan bool)
term = make(chan os.Signal, 1)
)