Skip to content

Commit

Permalink
Update another comment on fork vs. clone3
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Oct 15, 2021
1 parent de2e483 commit ad6e5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/sys/unix/process/process_unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,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))
}

Expand Down

0 comments on commit ad6e5e1

Please sign in to comment.