Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller owns the operating-system process group created for one command.
func Attach ¶
func Attach(cmd *exec.Cmd) (*Controller, error)
Attach records the process group after the command has started.
func AttachPID ¶
func AttachPID(pid int) (*Controller, error)
func (*Controller) Close ¶
func (c *Controller) Close() error
Close releases platform resources. Unix process groups do not own handles.
func (*Controller) Terminate ¶
func (c *Controller) Terminate() error
Terminate stops the whole process tree represented by the process group.
Click to show internal directories.
Click to hide internal directories.