signal

package
v1.2.22 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 9 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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