Easily handle a sub-process with two-way pipes.