diff --git a/pkg/signals/signal.go b/pkg/signals/signal.go index e0d5c1b9..2a5b462a 100644 --- a/pkg/signals/signal.go +++ b/pkg/signals/signal.go @@ -24,9 +24,9 @@ import ( 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. +// SetupSignalHandler registered for SIGTERM and SIGINT. A context is returned +// which is cancelled on one of these signals. If a second signal is caught, +// the program is terminated with exit code 1. func SetupSignalHandler() context.Context { close(onlyOneSignalHandler) // panics when called twice