signals

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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 向指定的进程发送信号 process: 进程对象 sig: 信号 sigChildren: 如果为true,则信号会发送到该进程的子进程

func ToSignal

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

ToSignal 传入信号字符串,返回标准信号

Types

This section is empty.

Jump to

Keyboard shortcuts

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