feat: define P2 host workspace command contract
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
//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() } }
|
||||
Reference in New Issue
Block a user