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
Loading
Please sign in to comment