Skip to content

Commit

Permalink
Add comment explaining when posix_spawn() can be supported.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdrewery committed Mar 1, 2018
1 parent 2e2d926 commit ef73b3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstd/sys/unix/process/process_unix.rs
Expand Up @@ -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>>
Expand Down

0 comments on commit ef73b3a

Please sign in to comment.