summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-12-03 12:29:39 +0000
committerPaul Buetow <pbuetow@mimecast.com>2021-12-03 12:29:39 +0000
commit9413bf8c8fe505db9e046fae12dad9951117e22d (patch)
tree4775ebdc0a113cf961cefb30d3bc8324b487f46b /cmd
parentdecb0434e84b34777d289f7f639e8d2363457417 (diff)
fix misuse of unbuffered channel for OS signal handling
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dserver/main.go2
1 files changed, 1 insertions, 1 deletions
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() {