procgroup

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package procgroup starts child processes in their own process group and stops the whole group.

Every process the harness spawns — a shell command, an MCP server — can spawn children of its own, so killing only the process we hold a handle to leaves those running. The mechanism for reaching the whole tree is entirely platform-specific (a negative-pid signal on Unix, a taskkill tree walk on Windows), which is what this package exists to hide.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attr

func Attr() *syscall.SysProcAttr

Attr puts the child in its own process group so Terminate and Kill can address the whole tree.

func Kill

func Kill(p *os.Process) error

Kill forcibly stops the child's process group.

func Terminate

func Terminate(p *os.Process) error

Terminate asks the child's process group to shut down.

Types

This section is empty.

Jump to

Keyboard shortcuts

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