Tech News
← Home  ·  All topics

Process Management

2 GoKawiil briefs on this topic

New open-source tool Corral guarantees full cleanup of agent-spawned processes

A developer released Corral, a Linux command-line tool that runs a shell command with a time limit and ensures every process it spawned, including detached daemons, is terminated before returning. It uses cgroup v2's cgroup.kill for guaranteed cleanup when available, or acts as a child subreaper tracking processes via /proc and pidfds otherwise, and exits with code 120 if it cannot verify a clean kill. The tool requires Linux 5.11 or later, with 5.14 needed for its enforced cgroup mode, and is not intended as a security sandbox.

Explainer breaks down how Linux uses intrusive linked lists for process management

A technical post explains intrusive linked lists, a linked-list variant where the 'next' pointer is embedded directly inside the data structure being linked rather than stored in a separate wrapper node. It walks through how to construct such a list in C, including how to recover the address of a containing object by subtracting the offset of its embedded list member.