processtree

package
v0.1.0-alpha.28 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: GPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package processtree keeps app-owned worker descendants within one lifecycle.

Package processtree owns platform-specific process-group lifecycle helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(command *exec.Cmd)

Configure gives command a process group that can be stopped as one unit.

func Kill

func Kill(command *exec.Cmd) error

Kill terminates command and every process in its process group.

Types

type Handle

type Handle struct {
	// contains filtered or unexported fields
}

Handle owns the platform resource used to terminate a process tree.

func Attach

func Attach(command *exec.Cmd) (*Handle, error)

Attach returns a handle that terminates command's process group on close.

func (*Handle) Close

func (h *Handle) Close() error

Close terminates the owned process tree. Repeated calls are safe.

Jump to

Keyboard shortcuts

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