Add read/write forwarding to ends of pipe.