about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-10-15 14:45:23 -0700
committerJosh Stone <jistone@redhat.com>2021-11-15 16:30:29 -0800
commitaaa8f4efe1086711cbd954e4b9afbc20ee1d2b4e (patch)
treee22f6137c30dd01706a08a8e821648a48010fd9f
parent4b4b56d2fa62255a0024048e28fefca8cbcbe783 (diff)
downloadrust-aaa8f4efe1086711cbd954e4b9afbc20ee1d2b4e.tar.gz
rust-aaa8f4efe1086711cbd954e4b9afbc20ee1d2b4e.zip
Update another comment on fork vs. clone3
(cherry picked from commit fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a)
-rw-r--r--library/std/src/sys/unix/process/process_unix.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs
index d0af2b6e9db..5e4eff75894 100644
--- a/library/std/src/sys/unix/process/process_unix.rs
+++ b/library/std/src/sys/unix/process/process_unix.rs
@@ -211,8 +211,8 @@ impl Command {
             }
         }
 
-        // If we get here, the 'clone3' syscall does not exist
-        // or we do not have permission to call it
+        // Generally, we just call `fork`. If we get here after wanting `clone3`,
+        // then the syscall does not exist or we do not have permission to call it.
         cvt(libc::fork()).map(|res| (res, pidfd))
     }