kubernetes: k8s.io/kubernetes/staging/src/k8s.io/sample-controller/pkg/signals Index | Files

package signals

import "k8s.io/kubernetes/staging/src/k8s.io/sample-controller/pkg/signals"

Index

Package Files

signal.go signal_posix.go

func SetupSignalHandler Uses

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.

Package signals imports 3 packages (graph) and is imported by 1 packages. Updated 2019-10-24. Refresh now. Tools for package owners.