Skip to content

Commit 358286f

Browse files
authored
fix description for SetupSignalHandler()
fix description for SetupSignalHandler() in alias.go to match actual behaviour of returning a context (instead of a channel)
1 parent 5dcea7e commit 358286f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alias.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ var (
122122
// there is another OwnerReference with Controller flag set.
123123
SetControllerReference = controllerutil.SetControllerReference
124124

125-
// SetupSignalHandler registered for SIGTERM and SIGINT. A stop channel is returned
126-
// which is closed on one of these signals. If a second signal is caught, the program
125+
// SetupSignalHandler registers for SIGTERM and SIGINT. A context is returned
126+
// which is canceled on one of these signals. If a second signal is caught, the program
127127
// is terminated with exit code 1.
128128
SetupSignalHandler = signals.SetupSignalHandler
129129

0 commit comments

Comments
 (0)