diff options
| author | Josh Stone <jistone@redhat.com> | 2021-10-15 14:45:23 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2021-11-05 14:48:52 -0700 |
| commit | fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a (patch) | |
| tree | 788765339f2058d06e66f5c1221f8e4758a6e9f1 /library/std/src/sys/unix/process/process_unix.rs | |
| parent | 85b55ce00df3766db2b617bda4b2457f6d76e542 (diff) | |
| download | rust-fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a.tar.gz rust-fa2eee7bf2bcf03f64aa40a25f885b0301a9eb4a.zip | |
Update another comment on fork vs. clone3
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
| -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)) } |
