signal

package
v0.0.0-...-923e5ac Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: GPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT_SIGNAL = "SIGUSR1"
	INVALID        = "I"
)
View Source
const (
	ERROR_FINDING_PROCESS = 20
	ERROR_SENDING_SIGNAL  = 21
)

Variables

This section is empty.

Functions

func IntSignalToString

func IntSignalToString(signal int) string

func IntToSignal

func IntToSignal(signal int) (syscall.Signal, error)

func IsTerminal

func IsTerminal(signal syscall.Signal) bool

func Signal

func Signal(input *Input) (exitCode uint8)

func SignalToString

func SignalToString(signal syscall.Signal) (stringSignal string)

func StringToSignal

func StringToSignal(signal string) (syscall.Signal, error)

Types

type Input

type Input struct {
	abstract.Input

	Force bool

	ProcessIds []int
	Signal     syscall.Signal
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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