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

Function detachAttrs

internal/telemetry/detach_windows.go:22–24  ·  view source on GitHub ↗

detachAttrs returns SysProcAttr configured to place the child in its own process group so that console signals (Ctrl+C) delivered to the parent's group are not forwarded to the child, and to suppress any console window for the child and its descendants. CREATE_NO_WINDOW is preferred over DETACHED_P

()

Source from the content-addressed store, hash-verified

20// invocation. CREATE_NO_WINDOW gives the child a non-visible console that
21// descendants can inherit, avoiding the flash.
22func detachAttrs() *syscall.SysProcAttr {
23 return &syscall.SysProcAttr{CreationFlags: windows.CREATE_NEW_PROCESS_GROUP | windows.CREATE_NO_WINDOW}
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected