process

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: MIT Imports: 6 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseProcesses

func CloseProcesses(predicate func(process *ps.Process) bool, skipPids map[int32]struct{})

CloseProcesses part

func FindProcesses

func FindProcesses(predicate func(process *ps.Process) bool) map[int32]struct{}

FindProcesses finds chrome process running on host

func IsChromeProcess

func IsChromeProcess(process *ps.Process) bool

IsChromeProcess checks if a process is chrome/chromium

func RunningInContainer added in v0.0.81

func RunningInContainer() (bool, string)

RunningInContainer checks if the process is running in a docker container and returns true if it is. reference: https://www.baeldung.com/linux/is-process-running-inside-container

func SendInterrupt added in v0.10.0

func SendInterrupt()

SendInterrupt sends an interrupt signal to the current process. On Unix systems, this sends os.Interrupt (SIGINT).

Types

This section is empty.

Jump to

Keyboard shortcuts

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