[Libguestfs] [PATCH 6/7] cmd: New internal API for read/writing to a subprocess via a pipe.