signal

package
v0.0.0-...-e445f7c Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: BSD-3-Clause Imports: 3 Imported by: 2

Documentation

Overview

Package signal manages signal handling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hup

func Hup(f func())

Hup sets f() to be run on receipt of SIGHUP SIGHUP is meant to be used to refresh program configuration

func Ignore

func Ignore()

Ignore sets all signals to be ignored

func Int

func Int(f func())

Int sets f() to be run on receipt of SIGINT SIGINT is meant to be used to stop the program

func Quit

func Quit(f func())

Quit sets f() to be run on receipt of SIGQUIT SIGQUIT is meant to be used to stop the program gracefully

func Term

func Term(f func())

Term sets f() to be run on receipt of SIGTERM SIGTERM is meant to be used to stop the program

Types

This section is empty.

Jump to

Keyboard shortcuts

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