about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorBryan Drewery <bryan@shatow.net>2018-03-01 09:18:16 -0800
committerBryan Drewery <bryan@shatow.net>2018-03-01 09:18:16 -0800
commitef73b3ae2eac3a03f5b966a4f8b2a568e3619d51 (patch)
treedcf7a65f36af1e3147a0f891a7060091a01ce45e /src
parent2e2d9260f9425cd700199383096d8201190737de (diff)
downloadrust-ef73b3ae2eac3a03f5b966a4f8b2a568e3619d51.tar.gz
rust-ef73b3ae2eac3a03f5b966a4f8b2a568e3619d51.zip
Add comment explaining when posix_spawn() can be supported.
Diffstat (limited to 'src')
-rw-r--r--src/libstd/sys/unix/process/process_unix.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/process/process_unix.rs b/src/libstd/sys/unix/process/process_unix.rs
index dcf0278b4aa..bd6a8d3f64b 100644
--- a/src/libstd/sys/unix/process/process_unix.rs
+++ b/src/libstd/sys/unix/process/process_unix.rs
@@ -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>>