Skip to content

Commit

Permalink
Merge pull request #1716 from sgreene570/fix-signals-package-go-docs
Browse files Browse the repository at this point in the history
✨ Fix SetupSignalHandler godoc
  • Loading branch information
k8s-ci-robot committed Nov 15, 2021
2 parents 619e6b9 + 11f5650 commit 4d10a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/manager/signals/signal.go
Expand Up @@ -24,8 +24,8 @@ import (

var onlyOneSignalHandler = make(chan struct{})

// SetupSignalHandler registers 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
// 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
// is terminated with exit code 1.
func SetupSignalHandler() context.Context {
close(onlyOneSignalHandler) // panics when called twice
Expand Down

0 comments on commit 4d10a06

Please sign in to comment.