package signals
import "k8s.io/kubernetes/staging/src/k8s.io/sample-controller/pkg/signals"
Index ¶
Functions ¶
func SetupSignalHandler ¶
func SetupSignalHandler() (stopCh <-chan struct{})
SetupSignalHandler registered 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 is terminated with exit code 1.
Source Files ¶
signal.go signal_posix.go
- Version
- v1.13.5-beta.0
- Published
- Feb 28, 2019
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 7 seconds ago –
Tools for package owners.