Files
ThothII/tools/thothctl/internal/compose/process_unix.go
T

6 lines
293 B
Go

//go:build !windows
package compose
import ("os/exec"; "syscall")
func configureOwnedProcess(c *exec.Cmd) { c.SysProcAttr=&syscall.SysProcAttr{Setpgid:true} }
func terminateOwnedProcess(c *exec.Cmd) { if c.Process!=nil { _=syscall.Kill(-c.Process.Pid, syscall.SIGKILL); _=c.Process.Kill() } }