MCPcopy Create free account
hub / github.com/cli/cli / detachAttrs

Function detachAttrs

internal/telemetry/detach_unix.go:10–12  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

8// process group so that terminal signals delivered to the parent's group
9// (SIGINT, SIGHUP) are not forwarded to the child.
10func detachAttrs() *syscall.SysProcAttr {
11 return &syscall.SysProcAttr{Setpgid: true}
12}

Callers 1

SpawnSendTelemetryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected