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 Nov 5, 2021
1 parent 85b55ce commit fa2eee7
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 @@ -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))
}

Expand Down

0 comments on commit fa2eee7

Please sign in to comment.