What does it do?
corral runs commands with a time limit and returns only after confirming that all processes started by the command have ended. If it cannot confirm this, it uses exit code 120. When cgroup v2 is available, it terminates the entire group; otherwise, it tracks child processes and sends them signals.
Key features
- Runs a command within a specified time limit.
- Terminates the entire process tree, not just direct child processes.
- Returns exit code 120 if it cannot prove the processes have terminated.
- Outputs the execution mode, limits, and reason for termination as a JSON record.