diff --git a/cmd/fluxd/main.go b/cmd/fluxd/main.go index 784c71b87..3c29cd150 100644 --- a/cmd/fluxd/main.go +++ b/cmd/fluxd/main.go @@ -332,7 +332,7 @@ func main() { shutdownWg := &sync.WaitGroup{} go func() { - c := make(chan os.Signal) + c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) errc <- fmt.Errorf("%s", <-c) }() diff --git a/cmd/helm-operator/main.go b/cmd/helm-operator/main.go index 61910bc29..da4443be7 100644 --- a/cmd/helm-operator/main.go +++ b/cmd/helm-operator/main.go @@ -139,7 +139,7 @@ func main() { shutdownWg := &sync.WaitGroup{} go func() { - c := make(chan os.Signal) + c := make(chan os.Signal, 1) signal.Notify(c, syscall.SIGINT, syscall.SIGTERM) errc <- fmt.Errorf("%s", <-c) }()