cmd/gitbay-runner/proc_other.go

2f6b4f2de726155c8b805122f50ad7b93bfd827f
gitbay/cmd/gitbay-runner/proc_other.go

13 lines · 172 bytes

 1//go:build !unix
 2
 3package main
 4
 5import "os/exec"
 6
 7func ownProcessGroup(cmd *exec.Cmd) {}
 8
 9func killTree(cmd *exec.Cmd) {
10	if cmd.Process != nil {
11		cmd.Process.Kill()
12	}
13}