Files
Patrick szymkowiak 09979cf297 fix(grep): close subprocess stdin to prevent memory leak (#897)
When RTK runs via Claude Code's PreToolUse hook, grep/rg subprocesses
inherit the hook's open stdin pipe. They block waiting for EOF and never
terminate, accumulating memory unboundedly (reported: 514GB on 96GB Mac,
kernel panic).

Fix: set stdin(Stdio::null()) on both rg and grep fallback commands so
subprocesses get immediate EOF instead of inheriting the parent pipe.

Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
2026-04-02 17:21:48 +02:00
..
2026-03-29 13:40:56 +02:00
2026-03-31 20:43:59 +02:00
2026-03-31 20:43:59 +02:00
2026-03-25 19:12:46 +01:00
2026-03-29 13:40:56 +02:00