[Libguestfs] [libnbd PATCH 0/2] socket handling cleanups

Eric Blake eblake at redhat.com
Thu Jun 27 04:28:59 UTC 2019


While working on a new test of what happens when the server goes away
while commands are in flight, I managed to hit a race where I hit
death from SIGPIPE instead of a clean transition to the DEAD state.  I
also found myself wanting to use nbd_poll from the test, but with a
way to distinguish between the state machine progressing vs. hanging.

Eric Blake (2):
  socket: Avoid SIGPIPE where possible
  poll: Improve our interface

 generator/generator | 18 +++++++++++++-----
 lib/poll.c          | 13 ++++++++++---
 lib/socket.c        |  7 +++++++
 3 files changed, 30 insertions(+), 8 deletions(-)

-- 
2.20.1




More information about the Libguestfs mailing list