processutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProcess

func FindProcess(pid int) *os.Process

func IsValidPid

func IsValidPid(pid int) bool

func KillGroup

func KillGroup(pgid int) error

func KillProcess

func KillProcess(pid int) error

func ShutdownGroup

func ShutdownGroup(ctx context.Context, gpid int) error

func ShutdownProcess

func ShutdownProcess(ctx context.Context, pid int) error

Terminates pid, then if context is cancelled, kills pid.

func SignalGroup

func SignalGroup(pgid int, sig os.Signal) error

func SignalProcess

func SignalProcess(pid int, sig os.Signal) error

func TerminateGroup

func TerminateGroup(pgid int) error

func TerminateGroupWithTimeout

func TerminateGroupWithTimeout(pgid int, timeout time.Duration) error

func TerminateProcess

func TerminateProcess(pid int) error

func TerminateProcessWithTimeout

func TerminateProcessWithTimeout(pid int, timeout time.Duration) error

func WaitProcess

func WaitProcess(pid int) (*os.ProcessState, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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