Documentation
¶
Overview ¶
Package exec runs external commands with consistent timeout, cancellation, and process-group handling. Run captures combined stdout+stderr; RunStdout captures stdout only (detection parsers depend on a banner-free stdout). On timeout/cancellation the whole process group is killed (see proc_unix.go) and the result is classified as ExitCodeTimeout/ExitCodeCanceled.
Index ¶
Constants ¶
View Source
const ( // ExitCodeTimeout / ExitCodeCanceled are synthetic exit codes the runner // returns when a command is killed by its deadline or by user cancellation. ExitCodeTimeout = 124 ExitCodeCanceled = 130 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.