Skip to content

Commit fa2eee7

Browse files
committed
Update another comment on fork vs. clone3
1 parent 85b55ce commit fa2eee7

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
@@ -211,8 +211,8 @@ impl Command {
211211
}
212212
}
213213

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

0 commit comments

Comments
 (0)