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
commit7240f83f9f17bf72fbc4d068143003eba000cc75 (patch)
tree4775ebdc0a113cf961cefb30d3bc8324b487f46b /cmd
parent9c0a88d3f82f730fb3d19a0ffc9e85448bdc6216 (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() {