pass file descriptors as parameters, ready for pipe