Documentation ¶
Overview ¶
Package signals contains utilities for dealing with signals. This code was taken from https://github.com/kubernetes/sample-controller/tree/master/pkg/signals.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSignalHandlers ¶
func RegisterSignalHandlers() <-chan struct{}
RegisterSignalHandlers registers a signal handler for capturedSignals and starts a goroutine that will block until a signal is received. The first signal received will cause the stopCh channel to be closed, giving the opportunity to the program to exist gracefully. If a second signal is received before then, we will force exit with code 1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.