remove folly::Subprocess::CLOSE
Summary: As mentioned in D30901400 (https://github.com/facebook/folly/commit/b258ee31860b47b9196872264f6f3a331d450b1f) / OSS commit b258ee31, `folly::Subprocess::CLOSE` has implications that are rather suboptimal in real-world use. To recap, opening a socket or file will use the lowest unused fd number, meaning that if we close stdin/stdout/stderr they can be replaced by a random file or socket. This may result in unexpected behaviour. Reviewed By: luciang Differential Revision: D30991108 fbshipit-source-id: 9055af84423500a1896015b5fe866ceb2cc64186
Showing
Please register or sign in to comment