process

package
v0.11.17 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 6 Imported by: 22 modules, 20 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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