cli/internal/telemetry/detach_unix.go
2026-04-16 21:42:46 +02:00

12 lines
348 B
Go

//go:build !windows
package telemetry
import "syscall"
// detachAttrs returns SysProcAttr configured to place the child in its own
// process group so that terminal signals delivered to the parent's group
// (SIGINT, SIGHUP) are not forwarded to the child.
func detachAttrs() *syscall.SysProcAttr {
return &syscall.SysProcAttr{Setpgid: true}
}