pre_exec callbacks and macOS relative paths force Rust back to fork

charliermarsh · x · 2026-11-25

Charlie Marsh lists two fallback triggers: 1) adding a preexec callback puts you back on fork + exec (Codex did this in some cases); 2) on macOS, using a relative executable with a currentdir also falls back to fork due to a historical macOS bug.

Related event: Codex speeds up process spawning 800x by replacing fork with posix_spawn(14 posts)→

Original post →

More from coding & agent

coding & agent channel →