diff --git a/pkg/server/signal.go b/pkg/server/signal.go index 1cd8cefaa..6f0cff4ba 100644 --- a/pkg/server/signal.go +++ b/pkg/server/signal.go @@ -26,7 +26,7 @@ var onlyOneSignalHandler = make(chan struct{}) // SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned // which is closed on one of these signals. If a second signal is caught, the program // is terminated with exit code 1. -func SetupSignalHandler() (stopCh <-chan struct{}) { +func SetupSignalHandler() <-chan struct{} { close(onlyOneSignalHandler) // panics when called twice stop := make(chan struct{})