Support linux namespace clone flags
authorAravind Anbudurai <aru7@fb.com>
Wed, 12 Apr 2017 08:36:29 +0000 (01:36 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Apr 2017 08:54:48 +0000 (01:54 -0700)
commit4e9783b98883ed7b5fbef915556c0736ffdfe545
tree7058791a55312d7b6f19ed0bb5c42f30f7389fed
parentb41eb6f0aa3c97a31df39cfcacd6a1a46ed976b6
Support linux namespace clone flags

Summary:
This diffs adds supports on folly::Subprocess to be able to take clone flags and
use them to call clone(2) instead of the default vfork()

I checked that all tests pass when I replace vfork with fork on trunk. So there
isn't anything built assuming the parent is paused for an execve. Correct me if
I am wrong here.

(Note: this ignores all push blocking failures!)

Reviewed By: snarkmaster

Differential Revision: D4853169

fbshipit-source-id: 7e5851df3a49996a4a5dc1945457686dd042e1f4
folly/Subprocess.cpp
folly/Subprocess.h
folly/test/SubprocessTest.cpp