Skip to content

Commit

Permalink
Fix SetupSignalHandler godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreene570 committed Nov 13, 2021
1 parent 619e6b9 commit 11f5650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/manager/signals/signal.go
Original file line number Diff line number Diff line change
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 11f5650

Please sign in to comment.