signal

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSigChan

func NewSigChan() <-chan os.Signal

NewSigChan returns a channel, which is triggered on every SIGHUP, SIGTERM.

func SelfSIGHUP

func SelfSIGHUP()

SelfSIGHUP sends SIGHUP signal to the current process.

func WaitForSigterm

func WaitForSigterm() os.Signal

WaitForSigterm waits for either SIGTERM or SIGINT

Returns the caught signal.

It also prevent from program termination on SIGHUP signal, since this signal is frequently used for config reloading.

Types

This section is empty.

Jump to

Keyboard shortcuts

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