summaryrefslogtreecommitdiff
path: root/library/std/src/sys/unix/process/process_unix.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@fedoraproject.org>2021-10-15 15:29:15 -0700
committerJosh Stone <jistone@redhat.com>2021-11-05 14:49:24 -0700
commit6edaaa6db80a1d35a9ecb48a3a9b32551b91dc5d (patch)
tree081de9860ed658863e45f03354f796b34d6c884b /library/std/src/sys/unix/process/process_unix.rs
parentfa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a (diff)
downloadrust-6edaaa6db80a1d35a9ecb48a3a9b32551b91dc5d.tar.gz
Also note tool expectations of fork vs clone3
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
-rw-r--r--library/std/src/sys/unix/process/process_unix.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs
index 5e4eff75894..326382d9038 100644
--- a/library/std/src/sys/unix/process/process_unix.rs
+++ b/library/std/src/sys/unix/process/process_unix.rs
@@ -168,6 +168,8 @@ impl Command {
// Bypassing libc for `clone3` can make further libc calls unsafe,
// so we use it sparingly for now. See #89522 for details.
+ // Some tools (e.g. sandboxing tools) may also expect `fork`
+ // rather than `clone3`.
let want_clone3_pidfd = self.get_create_pidfd();
// If we fail to create a pidfd for any reason, this will