signals

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL