Skip to content

Commit ef73b3a

Browse files
committed
Add comment explaining when posix_spawn() can be supported.
1 parent 2e2d926 commit ef73b3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sys/unix/process/process_unix.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ impl Command {
242242
Ok(None)
243243
}
244244

245+
// Only support platforms for which posix_spawn() can return ENOENT
246+
// directly.
245247
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
246248
fn posix_spawn(&mut self, stdio: &ChildPipes, envp: Option<&CStringArray>)
247249
-> io::Result<Option<Process>>

0 commit comments

Comments
 (0)