kubernetes/staging/src/k8s.io/sample-controller/pkg/signals/signal.go

var onlyOneSignalHandler

// 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 {}