process

package
v1.25.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ProcessFS = "/proc"

ProcessFS is the process file system.

Variables

This section is empty.

Functions

func DefunctProcesses

func DefunctProcesses() (defunctCount uint, retErr error)

DefunctProcesses returns the number of zombie processes in the node.

func DefunctProcessesForPath

func DefunctProcessesForPath(path string) (defunctCount uint, retErr error)

DefunctProcessesForPath retrieves the number of zombie processes from a specific process filesystem.

Types

type Stat

type Stat struct {
	// Comm is the command name (usually the executable filename).
	Comm string

	// State is the state of the process.
	State string
}

Stat represents status information of a process from /proc/[pid]/stat.

Jump to

Keyboard shortcuts

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