signals

package
Version: v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL