ZDDC/zddc/internal/convert/sysprocattr_other.go
2026-06-11 13:32:31 -05:00

17 lines
521 B
Go

//go:build darwin || freebsd || netbsd || openbsd
package convert
import "syscall"
// sysProcAttr returns the platform-specific SysProcAttr for the
// container-engine child. BSD-family targets get Setpgid only (no
// Pdeathsig); a zddc-server crash mid-conversion may leave the
// detached engine process running on macOS/BSD. In practice
// production deployments are Linux containers where the full
// hardening applies.
func sysProcAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{
Setpgid: true,
}
}