//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,
	}
}
