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 ¶
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.
Click to show internal directories.
Click to hide internal directories.