process

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PID

type PID int

type Process

type Process struct {
	// The process ID.
	PID PID
	// The filename of the executable.
	Comm string
	// The PID of the parent of this process.
	PPID PID
	// The process group ID of the process.
	PGRP PID
	// The session ID of the process.
	Session Session
	// Children processes.
	Children []*Process
}

func SelfProcess

func SelfProcess() (*Process, error)

func (*Process) Signal

func (p *Process) Signal(sig os.Signal) error

func (*Process) SprintTree

func (p *Process) SprintTree(indent int) string

func (*Process) String

func (p *Process) String() string

type ProcessMap

type ProcessMap map[PID]*Process

func GetProcessMap

func GetProcessMap() (ProcessMap, error)

type Session

type Session int

Jump to

Keyboard shortcuts

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