kill

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: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Kill

func Kill(input *Input) (exitCode uint8)

in one second intervalls send first SIGTERM, then SIGINT, then SIGQUIT with input.Force, send SIGKILL after SIGQUIT with input.Interactive, send SIGSTOP and wait for user input

func Signal

func Signal(input *Input, process *os.Process, signal os.Signal) bool

return true if to continue, false if not

Types

type Input

type Input struct {
	abstract.Input

	Force       bool
	Intervall   uint
	Interactive bool

	ProcessIds []int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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