signal

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

This package provides helper functions for dealing with signals across various operating systems

Documentation

Overview

Package signal provides helper functions for dealing with signals across various operating systems.

Index

Constants

This section is empty.

Variables

View Source
var SignalMap = map[string]struct{}{
	"ABRT":     {},
	"ALRM":     {},
	"BUS":      {},
	"CHLD":     {},
	"CLD":      {},
	"CONT":     {},
	"FPE":      {},
	"HUP":      {},
	"ILL":      {},
	"INT":      {},
	"IO":       {},
	"IOT":      {},
	"KILL":     {},
	"PIPE":     {},
	"POLL":     {},
	"PROF":     {},
	"PWR":      {},
	"QUIT":     {},
	"SEGV":     {},
	"STKFLT":   {},
	"STOP":     {},
	"SYS":      {},
	"TERM":     {},
	"TRAP":     {},
	"TSTP":     {},
	"TTIN":     {},
	"TTOU":     {},
	"UNUSED":   {},
	"URG":      {},
	"USR1":     {},
	"USR2":     {},
	"VTALRM":   {},
	"WINCH":    {},
	"XCPU":     {},
	"XFSZ":     {},
	"RTMIN":    {},
	"RTMIN+1":  {},
	"RTMIN+2":  {},
	"RTMIN+3":  {},
	"RTMIN+4":  {},
	"RTMIN+5":  {},
	"RTMIN+6":  {},
	"RTMIN+7":  {},
	"RTMIN+8":  {},
	"RTMIN+9":  {},
	"RTMIN+10": {},
	"RTMIN+11": {},
	"RTMIN+12": {},
	"RTMIN+13": {},
	"RTMIN+14": {},
	"RTMIN+15": {},
	"RTMAX-14": {},
	"RTMAX-13": {},
	"RTMAX-12": {},
	"RTMAX-11": {},
	"RTMAX-10": {},
	"RTMAX-9":  {},
	"RTMAX-8":  {},
	"RTMAX-7":  {},
	"RTMAX-6":  {},
	"RTMAX-5":  {},
	"RTMAX-4":  {},
	"RTMAX-3":  {},
	"RTMAX-2":  {},
	"RTMAX-1":  {},
	"RTMAX":    {},

	"BUG":  {},
	"EMT":  {},
	"INFO": {},

	"BUF": {},
	"LWP": {},
	"THR": {},
}

SignalMap is a map of supported signals.

Functions

func CheckSignal

func CheckSignal(rawSignal string) error

CheckSignal translates a string to a valid syscall signal. It returns an error if the signal map doesn't include the given signal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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