Skip to main content

Module supervise

Module supervise 

Source
Expand description

cog-runner-style process supervision (ADR-100 section 3): a cleared environment, rlimits applied in the child before exec, an unprivileged user, a wall-clock cap, capped output capture, and terminate-then-kill.

Structs§

LaunchSpec
What to launch.
ProcLimits
Resource limits applied with setrlimit in the child.
Supervised
A running supervised process.

Constants§

TIMEOUT_GRACE
Grace before SIGKILL when a run exceeds its wall-clock cap.

Functions§

running_as_root
True when this process runs as root.