Rust's std usually uses posix_spawnp under the hood — with exceptions
charliermarsh · x · 2026-11-25
A notable detail: for calls like Command::new("ls").output(), the Rust standard library generally uses posixspawnp internally — but there are exceptions where it silently falls back to fork + exec.
Related event: Rust std's Hidden fork Fallback Triggers Revealed(2 posts)→
More from coding & agent
- Next.js Nights Berlin on Dec 2 to cover Go support, native routes, and agent-ready framework — evilrabbit_ · 2026-11-25
- OpenAI open-sources fix for Codex MCP server spawning reliability on macOS — charliermarsh · 2026-11-25
- Codex built its own Rust Command abstraction to stay on posix_spawn — charliermarsh · 2026-11-25
- fork's copy-on-write still copies page tables, slowing big processes — charliermarsh · 2026-11-25
- Codex cuts process spawn time 800x to 0.25ms via direct posix_spawn — charliermarsh · 2026-11-25
- LiveKit ships Turn Detector v1.1, cutting turn-end detection latency 15–34% — alexcovo_eth · 2026-11-25