utils

package
v0.0.0-...-d47ba9e Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SIGEXISTS If sig is 0, then no signal is sent, but error checking is
	// still performed; this can be used to check for the existence of a
	// process ID or process group ID.
	SIGEXISTS int = iota
	// SIGHUP terminal line hangup
	SIGHUP
	// SIGINT interrupt program
	SIGINT
	// SIGQUIT quit program
	SIGQUIT
	// SIGILL illegal instruction
	SIGILL
	// SIGTRAP trace trap
	SIGTRAP
	// SIGABRT abort program (formerly SIGIOT)
	SIGABRT
	// SIGEMT emulate instruction executed
	SIGEMT
	// SIGFPE floating-point exception
	SIGFPE
	// SIGKILL kill program
	SIGKILL
	// SIGBUS bus error
	SIGBUS
	// SIGSEGV segmentation violation
	SIGSEGV
	// SIGSYS non-existent system call invoked
	SIGSYS
	// SIGPIPE write on a pipe with no reader
	SIGPIPE
	// SIGALRM real-time timer expired
	SIGALRM
	// SIGTERM software termination signal
	SIGTERM
	// SIGURG urgent condition present on socket
	SIGURG
	// SIGSTOP stop (cannot be caught or ignored)
	SIGSTOP
	// SIGTSTP stop signal generated from keyboard
	SIGTSTP
	// SIGCONT continue after stop
	SIGCONT
	// SIGCHLD child Status has changed
	SIGCHLD
	// SIGTTIN background read attempted from control terminal
	SIGTTIN
	// SIGTTOU background write attempted to control terminal
	SIGTTOU
	// SIGIO I/O is possible on a descriptor (see fcntl(2))
	SIGIO
	// SIGXCPU cpu time limit exceeded (see setrlimit(2))
	SIGXCPU
	// SIGXFSZ file size limit exceeded (see setrlimit(2))
	SIGXFSZ
	// SIGVTALRM virtual time alarm (see setitimer(2))
	SIGVTALRM
	// SIGPROF profiling timer alarm (see setitimer(2))
	SIGPROF
	// SIGWINCH Window size change
	SIGWINCH
	// SIGINFO Status request from keyboard
	SIGINFO
	// SIGUSR1 User defined signal 1
	SIGUSR1
	// SIGUSR2 User defined signal 2
	SIGUSR2
)

Variables

View Source
var Signals = map[string]syscall.Signal{
	"SIGEXISTS": syscall.Signal(SIGEXISTS),
	"SIGHUP":    syscall.Signal(SIGHUP),
	"SIGINT":    syscall.Signal(SIGINT),
	"SIGQUIT":   syscall.Signal(SIGQUIT),
	"SIGILL":    syscall.Signal(SIGILL),
	"SIGTRAP":   syscall.Signal(SIGTRAP),
	"SIGABRT":   syscall.Signal(SIGABRT),
	"SIGEMT":    syscall.Signal(SIGEMT),
	"SIGFPE":    syscall.Signal(SIGFPE),
	"SIGKILL":   syscall.Signal(SIGKILL),
	"SIGBUS":    syscall.Signal(SIGBUS),
	"SIGSEGV":   syscall.Signal(SIGSEGV),
	"SIGSYS":    syscall.Signal(SIGSYS),
	"SIGPIPE":   syscall.Signal(SIGPIPE),
	"SIGALRM":   syscall.Signal(SIGALRM),
	"SIGTERM":   syscall.Signal(SIGTERM),
	"SIGURG":    syscall.Signal(SIGURG),
	"SIGSTOP":   syscall.Signal(SIGSTOP),
	"SIGTSTP":   syscall.Signal(SIGTSTP),
	"SIGCONT":   syscall.Signal(SIGCONT),
	"SIGCHLD":   syscall.Signal(SIGCHLD),
	"SIGTTIN":   syscall.Signal(SIGTTIN),
	"SIGTTOU":   syscall.Signal(SIGTTOU),
	"SIGIO":     syscall.Signal(SIGIO),
	"SIGXCPU":   syscall.Signal(SIGXCPU),
	"SIGXFSZ":   syscall.Signal(SIGXFSZ),
	"SIGVTALRM": syscall.Signal(SIGVTALRM),
	"SIGPROF":   syscall.Signal(SIGPROF),
	"SIGWINCH":  syscall.Signal(SIGWINCH),
	"SIGINFO":   syscall.Signal(SIGINFO),
	"SIGUSR1":   syscall.Signal(SIGUSR1),
	"SIGUSR2":   syscall.Signal(SIGUSR2),
}

Signals maps signal names to syscall signals

Functions

func InitSignals

func InitSignals() chan os.Signal

InitSignals registers the channel used to manage signals sent to TaskMaster

Types

This section is empty.

Jump to

Keyboard shortcuts

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