nano-run/server/api/flags_linux.go
Alexander Baryshnikov dac1910200 add ui stub
2020-09-28 21:46:37 +08:00

15 lines
235 B
Go

package api
import (
"os/exec"
"syscall"
)
func SetBinFlags(cmd *exec.Cmd) {
if cmd.SysProcAttr == nil {
cmd.SysProcAttr = &syscall.SysProcAttr{}
}
cmd.SysProcAttr.Pdeathsig = syscall.SIGTERM
cmd.SysProcAttr.Setpgid = true
}