]> git.lizzy.rs Git - rust.git/commitdiff
Update another comment on fork vs. clone3
authorJosh Stone <jistone@redhat.com>
Fri, 15 Oct 2021 21:45:23 +0000 (14:45 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 5 Nov 2021 21:48:52 +0000 (14:48 -0700)
library/std/src/sys/unix/process/process_unix.rs

index d0af2b6e9db0c25e449d5b8aa324566c62391516..5e4eff75894b6d8f2cc3d2c32b6103c31e836cb3 100644 (file)
@@ -211,8 +211,8 @@ fn clone3(cl_args: *mut clone_args, len: libc::size_t) -> libc::c_long
             }
         }
 
-        // 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))
     }