Skip to main content

Module process

Module process 

Source
Expand description

Running a child process within a time and an output bound.

Both the detector executable and the shell that activates its environment run through run_bounded: the clock starts when the process was spawned, standard output and standard error are read concurrently against one combined byte budget, and when either bound is reached the process and its descendants are terminated. Standard error captured until then is kept for diagnostics.

Structs§

ProcessLimits
The bounds of one process run.
ProcessOutput
A process that exited within the limits, with whatever status.

Enums§

ProcessError
Why a process could not be run to completion within the limits.

Functions§

run_bounded
Runs command with no standard input and both output streams captured, within limits.