processtree

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package processtree owns operating-system process descendant containment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(command *exec.Cmd) error

Configure prepares a command so no descendant can escape before Attach.

Types

type Terminator

type Terminator interface {
	Terminate() error
}

Terminator owns a process and every descendant it creates.

func Attach

func Attach(process *os.Process) (Terminator, error)

Attach takes ownership of a started command's process tree.

Jump to

Keyboard shortcuts

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