procutil

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package procutil provides small cross-platform process helpers shared by every place that shells out (tool executors, hook runner).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupProcessGroup

func SetupProcessGroup(cmd *exec.Cmd)

SetupProcessGroup runs the command's shell in its own process group and makes timeout/cancel kill the whole group, so a grandchild the shell spawned (e.g. a `sleep`) is torn down instead of surviving as an orphan.

cmd must have been created by exec.CommandContext (Cancel requires it) and must not have started yet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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