Add comment explaining when posix_spawn() can be supported.

This commit is contained in:
Bryan Drewery
2018-03-01 09:18:16 -08:00
parent 2e2d9260f9
commit ef73b3ae2e

View File

@@ -242,6 +242,8 @@ impl Command {
Ok(None)
}
// Only support platforms for which posix_spawn() can return ENOENT
// directly.
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
fn posix_spawn(&mut self, stdio: &ChildPipes, envp: Option<&CStringArray>)
-> io::Result<Option<Process>>