signals

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPidExist

func CheckPidExist(pid int) bool

CheckPidExist 检查进程是否存在

func Kill

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

Kill 向指定的进程发送信号 process: 进程对象 sig: 信号 sigChildren: 如果为true,则信号会发送到该进程的子进程

func KillPid

func KillPid(pid int, sig os.Signal, sigChildren ...bool) error

KillPid 向指定的Pid发送信号 pid: 进程pid sig: 信号 sigChildren: 如果为true,则信号会发送到该进程的子进程

func ToSignal

func ToSignal(signalName string) os.Signal

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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