openclaw/src/process
Peter Steinberger cc9dcd3d69 fix(gateway): prefer linux child OOM victims
Raise eligible Linux child processes own oom_score_adj from a child-side /bin/sh exec shim so cgroup memory pressure prefers transient workers over the long-lived gateway. Cover supervisor children, PTY shells, MCP stdio servers, and OpenClaw-launched browser processes through the shared process runtime seam.

Harden the wrapper for distroless images, shell startup env, per-child and process-level opt-outs, dash-compatible exec, and leading-dash command names. Document Linux verification and OOM behavior.

Fixes #70404.

Co-authored-by: Neerav Makwana <261249544+neeravmakwana@users.noreply.github.com>
2026-04-23 05:23:40 +01:00
..
supervisor fix(gateway): prefer linux child OOM victims 2026-04-23 05:23:40 +01:00
child-process-bridge.ts
command-queue.test.ts fix(logging): split queue diagnostic runtime 2026-04-12 03:45:35 +01:00
command-queue.ts fix(logging): split queue diagnostic runtime 2026-04-12 03:45:35 +01:00
command-queue.types.ts fix(cycles): split embedded runner and setup leaf types 2026-04-11 14:49:48 +01:00
exec.no-output-timer.test.ts
exec.test.ts test: stabilize isolated runtime and config suites 2026-04-07 11:41:02 +01:00
exec.ts refactor: dedupe path lowercase helpers 2026-04-07 15:53:50 +01:00
exec.windows.test.ts test(process): share shimmed windows success assertions 2026-04-12 09:37:06 +01:00
kill-tree.test.ts test: trim more core importOriginal usage 2026-04-03 19:49:43 +01:00
kill-tree.ts
lanes.ts
linux-oom-score.test.ts fix(gateway): prefer linux child OOM victims 2026-04-23 05:23:40 +01:00
linux-oom-score.ts fix(gateway): prefer linux child OOM victims 2026-04-23 05:23:40 +01:00
restart-recovery.ts
spawn-utils.test.ts
spawn-utils.ts
test-timeouts.ts
windows-command.test.ts fix: support corepack cmd shim on windows 2026-04-06 03:48:47 +01:00
windows-command.ts refactor: dedupe path lowercase helpers 2026-04-07 15:53:50 +01:00