Managing processes with Go
package main
import (
"os/exec"
"time"
"github.com/nightlyone/process"
)
func main() {
cmd := exec.Command("true")
group, err := process.Background(cmd)
if err != nil {
panic(err)
}
group.Terminate(1 * time.Second)
}
BSD
Install Go 1, either from source or with a prepackaged binary.
Then run
go get github.com/nightlyone/process
This package will only work on UNIX based systems