From dae389f058ba6b1fa92da4c5da216ce9c3b12e7a Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Wed, 14 Nov 2018 16:41:32 +0100 Subject: [PATCH] cmd/alertmanager: use buffered channel for signal Signed-off-by: Simon Pasquier --- cmd/alertmanager/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/alertmanager/main.go b/cmd/alertmanager/main.go index 4a395f55..b10c4306 100644 --- a/cmd/alertmanager/main.go +++ b/cmd/alertmanager/main.go @@ -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) )