Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetachProcess ¶
DetachProcess configures cmd to run in a new session, detached from the parent. The child survives the parent exiting.
func LooksAbsolutePath ¶
LooksAbsolutePath returns true if path looks like an absolute path on any OS. Unlike filepath.IsAbs, this recognizes POSIX-style absolute paths (/workspace/...) even on Windows, which is needed for file paths from agent payloads that may use POSIX conventions regardless of host OS.
func SafeRename ¶
SafeRename moves src to dst, replacing dst if it exists. On Windows, removes dst first (os.Rename cannot overwrite) and retries only on transient sharing-violation errors from antivirus or search indexing. Non-transient errors fail immediately. This is NOT atomic on Windows.
func SetProcessGroup ¶
SetProcessGroup configures cmd to run in a new process group.
func TermSignals ¶
TermSignals returns the signals to listen for graceful shutdown.
Types ¶
This section is empty.