commit | e384bb2e403b0f0f666e89d5f6acfaec41120cc5 | [log] [tgz] |
---|---|---|
author | Alex Deymo <deymo@google.com> | Tue Mar 29 17:23:33 2016 -0700 |
committer | Alex Deymo <deymo@google.com> | Mon Apr 04 19:14:29 2016 -0700 |
tree | c010aa4e478c1d6fc9b78abf486a4725341ed86f | |
parent | b9d4a67734f52c76d1e7472e59276f82f9ec3fb5 [diff] |
Subprocess: Close all unused file descriptors. This patch extends Subprocess::ExecFlags() method with a list of file descriptors that should be kept open on the child process and mapped to a pipe() in the parent. The remaining file descriptors will be closed. Bug: 27880754 TEST=Added unittests for this functionality. Change-Id: Id96fb6a72f7805a0bfacfbc85422dc7d44750d93