Fixing Claude Code's process forking bug

Originally published at https://shivankaul.com/blog/claude-code-process-exhaustion . I’ve been using Claude Code on the CLI recently, and I keep running into annoying bugs. A particularly egregious one was where Claude Code spawned thousands of zombie processes and exhausted my process limit, essentially fork-bombing me. In the iTerm2 window where I had claude running, I saw the following output…