We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 619e6b9 + 11f5650 commit 4d10a06Copy full SHA for 4d10a06
pkg/manager/signals/signal.go
@@ -24,8 +24,8 @@ import (
24
25
var onlyOneSignalHandler = make(chan struct{})
26
27
-// SetupSignalHandler registers for SIGTERM and SIGINT. A stop channel is returned
28
-// which is closed on one of these signals. If a second signal is caught, the program
+// SetupSignalHandler registers for SIGTERM and SIGINT. A context is returned
+// which is canceled on one of these signals. If a second signal is caught, the program
29
// is terminated with exit code 1.
30
func SetupSignalHandler() context.Context {
31
close(onlyOneSignalHandler) // panics when called twice
0 commit comments