sighandling

package
v0.0.0-...-ff2c174 Latest Latest
Warning

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

Go to latest
Published: May 9, 2021 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sighandling contains helpers for handling signals to applications.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IgnoreChildStop

func IgnoreChildStop() error

IgnoreChildStop sets the SA_NOCLDSTOP flag, causing child processes to not generate SIGCHLD when they stop.

func StartSignalForwarding

func StartSignalForwarding(handler func(linux.Signal)) func()

StartSignalForwarding ensures that synchronous signals are passed to the given handler function and returns a callback that stops signal delivery.

Note that this function permanently takes over signal handling. After the stop callback, signals revert to the default Go runtime behavior, which cannot be overridden with external calls to signal.Notify.

Types

This section is empty.

Jump to

Keyboard shortcuts

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