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