signals

package module
v0.0.0-...-c2cae38 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(process *os.Process, sig os.Signal, sigChildren bool) error

Kill sends signal to the process

Args:

process - the process which the signal should be sent to
sig - the signal will be sent
sigChildren - true if the signal needs to be sent to the children also

func ToSignal

func ToSignal(signalName string) (os.Signal, error)

ToSignal returns OS dependent signal name for given signal name (or syscall.SIGTERM if garbage given)

Types

This section is empty.

Jump to

Keyboard shortcuts

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