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)→

Original post →

More from coding & agent

coding & agent channel →