sandbox: init=true so Chromium zombies get reaped #3

Merged
osobh merged 1 commits from sandbox-init-tini into main 2026-07-11 19:07:24 +00:00
Showing only changes of commit 9a5e24eeba - Show all commits
+5
View File
@@ -133,6 +133,11 @@ impl SandboxDriver for DockerDriver {
memory: Some(spec.memory_bytes), memory: Some(spec.memory_bytes),
nano_cpus: Some(spec.nano_cpus), nano_cpus: Some(spec.nano_cpus),
pids_limit: Some(spec.pids_limit), pids_limit: Some(spec.pids_limit),
// Run tini as PID 1 so it reaps re-parented children (Chromium
// spawns short-lived helper/crashpad processes). `sleep infinity`
// never wait()s, so without this they accumulate as zombies and
// eventually exhaust `pids_limit` in long-lived browser sandboxes.
init: Some(true),
..Default::default() ..Default::default()
}; };
let body = ContainerCreateBody { let body = ContainerCreateBody {