Documentation
¶
Overview ¶
Package winproc adjusts the OS-process attributes attached to an *exec.Cmd. On Windows it suppresses console-window allocation for the child; on every other platform it is a no-op so call sites stay platform-agnostic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLocalSystem ¶ added in v1.11.7
func IsLocalSystem() bool
IsLocalSystem always returns false on non-Windows platforms. The SYSTEM-context discrimination only matters for MSI deferred custom actions, which are Windows-only.
func WaitReleased ¶ added in v1.18.0
WaitReleased polls until no process holds any of paths (a file that can be opened for exclusive write access, or is missing, is released) or timeout passes. It returns the paths still held. A process that has exited can keep its image file held while the kernel tears it down, so "the process exited" alone is not enough before replacing its files.
Types ¶
This section is empty.