From 9413bf8c8fe505db9e046fae12dad9951117e22d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 3 Dec 2021 12:29:39 +0000 Subject: fix misuse of unbuffered channel for OS signal handling --- cmd/dserver/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd/dserver') diff --git a/cmd/dserver/main.go b/cmd/dserver/main.go index fff41f0..14188e1 100644 --- a/cmd/dserver/main.go +++ b/cmd/dserver/main.go @@ -55,7 +55,7 @@ func main() { ctx, cancel = context.WithTimeout(ctx, time.Duration(shutdownAfter)*time.Second) } - sigCh := make(chan os.Signal) + sigCh := make(chan os.Signal, 10) signal.Notify(sigCh, os.Interrupt, syscall.SIGTERM) go func() { -- cgit v1.2.3