Help us shape the future of Go! Take the 2026 Go Developer Survey

processtree

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 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