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 ¶
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.
Click to show internal directories.
Click to hide internal directories.