Skip to content

Commit ad6e5e1

Browse files
committed
Update another comment on fork vs. clone3
1 parent de2e483 commit ad6e5e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/sys/unix/process/process_unix.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ impl Command {
216216
}
217217
}
218218

219-
// If we get here, the 'clone3' syscall does not exist
220-
// or we do not have permission to call it
219+
// Generally, we just call `fork`. If we get here after wanting `clone3`,
220+
// then the syscall does not exist or we do not have permission to call it.
221221
cvt(libc::fork()).map(|res| (res, pidfd))
222222
}
223223

0 commit comments

Comments
 (0)