class LittleGhost::Sandbox::ProcessSession

Owns one sandboxed child process and its bounded input and output streams. Timeout, cancellation, and close terminate the original process group and its ordinary descendants. A descendant that creates another process group can outlive this session. Use a backend with process_tree_ownership or an outer supervisor when complete descendant ownership is required.

When memory_bytes is configured, the parent samples the visible process tree every 100 milliseconds. This guard may miss memory peaks between samples. On Linux, three consecutive failures to read the root process or the /proc snapshot end the process. Use an outer cgroup or container when memory needs a hard kernel-enforced limit.