gunk-dev/the-valley

procattr_linux.go

sourceaabc2b3ae680main's published tip history
275 bytes
1package exporttest
2
3import "syscall"
4
5// processGroup puts a command in a process group of its own, and has the
6// kernel kill it when the test process dies.
7func processGroup() *syscall.SysProcAttr {
8 return &syscall.SysProcAttr{Setpgid: true, Pdeathsig: syscall.SIGKILL}
9}