signals

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package signals provides the platform signal table shared by the signal completion predictors and the syscall.Signal type parser.

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("unknown or invalid signal")

ErrInvalid indicates an unrecognized signal name or number.

Functions

func Lookup

func Lookup(raw string) (syscall.Signal, bool)

Lookup parses a signal by name (e.g. "SIGTERM", "TERM", "hup") or numeric string ("15"), reporting whether the input references a known signal.

Types

type Entry

type Entry struct {
	Name        string
	ShortName   string
	Signal      syscall.Signal
	Description string
	Style       string
}

Entry describes a single known POSIX / system signal.

func Known

func Known() []Entry

Known returns the signal table for the current platform.

Jump to

Keyboard shortcuts

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