proc

package
v3.0.0-rc45 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PidByExecID

func PidByExecID() map[string]int

PidByExecID indexes the live processes by the exec each one is running, so a listing of execs can say which of them still has a process and what its pid is.

func Register

func Register(t T)

func Unregister

func Unregister(pid int)

Types

type T

type T struct {
	Pid int

	// ExecID names the run this process is, which is what joins it to
	// what the exec store remembers of the same run. A session id would
	// not: one command reaching several objects of a node is several
	// processes sharing one session id.
	ExecID string
}

T is a process the daemon started and has not reaped.

It holds the process facts and nothing else. What the process is running - the object, the command, the origin, the resource, when it began - is what the exec store remembers, under the same exec id, for as long after it ends as the store keeps it. This is only how to find it and how to signal it.

Jump to

Keyboard shortcuts

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