Documentation ¶
Overview ¶
Package process Provide some process handle util functions
Index ¶
- func Exists(pid int) bool
- func Kill(pid int, signal syscall.Signal) error
- func KillByName(keywords string, sig syscall.Signal) error
- func PID() int
- func PIDByName(keywords string) int
- func ProcInfo(pid int) (*os.Process, error)
- func Start(name string, argv []string, attr *os.ProcAttr) (*os.Process, error)
- type PidFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KillByName ¶ added in v0.6.2
KillByName kill process by name match
Types ¶
Click to show internal directories.
Click to hide internal directories.