Factor out pipe methods, add takeOwnershipOfPipes
Summary: In order to create an EventBase'd Suprocess class, I'd like to be able to manage the lifetime of pipes independently of the lifetime of the process. To this effect, I factored out basic Pipe handling, and provided a function that detaches the pipe vector from the Subprocess object. #6996492 a push-blocking test is broken in trunk Test Plan: added a unit test, fbconfig -r folly && fbmake runtests && fbmake runtests_opt Reviewed By: dancol@fb.com Subscribers: yfeldblum, chalfant, dancol, wez, anarayanan, trunkagent, net-systems@, njormrod, folly-diffs@ FB internal diff: D1699969 Signature: t1:1699969:1430975299:30d291ab7fcc555edddf098b33095a5b29500e76
Showing
Please register or sign in to comment