signals

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupShutdownSignalHandler added in v0.14.0

func SetupShutdownSignalHandler(logger logr.Logger, killFunc func()) (stopCh <-chan struct{})

SetupShutdownSignalHandler registeres a handler for SIGTERM and SIGINT. A stop channel is returned which is closed on the first receipt of one of these signals. On a second receipt the provided killFunc is called in a new gorouting. Upon a third receipt the process gets terminated via os.Exit(1).

killFunc is supposed to shutdown the process without further significant delay.

func SetupThreadDumpSignalHandler added in v0.14.0

func SetupThreadDumpSignalHandler(logger logr.Logger)

SetupThreadDumpSignalHandler registers a handler for SIGQUIT. Each time the signal is received, a thread dump is logged.

Types

This section is empty.

Jump to

Keyboard shortcuts

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