DescriptionMove ForkWithFlags from sandbox/ to base/ and plug it into LaunchProcess.
ForkWithFlags is a wrapper around the clone syscall that uses the libc
clone wrapper, and thus updates the libc's pid cache if it has one
(using sys_clone directly does not update the pid cache, so getpid may
return an incorrect result in the child). This exposes the ability to
set clone flags, which is needed to use Linux namespaces.
BUG=312380
Committed: https://crrev.com/e12d6652ece2a3ab72bb05837cfd7f0b0b9ecf3a
Cr-Commit-Position: refs/heads/master@{#310327}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Respond to comments. #
Messages
Total messages: 19 (6 generated)
|