diff options
| author | Josh Stone <jistone@redhat.com> | 2021-10-15 14:45:23 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-11-15 16:30:29 -0800 |
| commit | aaa8f4efe1086711cbd954e4b9afbc20ee1d2b4e (patch) | |
| tree | e22f6137c30dd01706a08a8e821648a48010fd9f | |
| parent | 4b4b56d2fa62255a0024048e28fefca8cbcbe783 (diff) | |
| download | rust-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.rs | 4 |
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)) } |
