Skip to content

Do best to kill your children.

License

Notifications You must be signed in to change notification settings

ifrstr/killdren

Repository files navigation

killdren

Do best to kill your children.

Go Reference Go Report Card

This package tries to kill child process and "grandchild process" when main process shutdown or panic.

Install

go get gopkg.ilharper.com/x/killdren

Usage

// Starting
cmd := &exec.Cmd{
	// ...
}
killdren.Set(cmd)
err := cmd.Run()

// Stopping
err := killdren.Stop(cmd)

Go Reference

LICENSE

MIT