[Libvir] [PATCH] Add signal-safe read/write wrappers