From 64286bd5e687cc5511634288d51a1d8720cb097a Mon Sep 17 00:00:00 2001 From: Andrew Bettison Date: Tue, 6 Sep 2016 12:07:00 +0930 Subject: [PATCH] Absorb ENOTRECOVERABLE in read_nonblock() Already absorbs EINTR and EAGAIN. The monitor interface ignores this error code for reasons unexplained, and now that it uses read_nonblock() instead of read(), this preserves its behaviour. --- net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net.c b/net.c index d0dc95cd..bdc74243 100644 --- a/net.c +++ b/net.c @@ -65,6 +65,7 @@ ssize_t _read_nonblock(int fd, void *buf, size_t len, struct __sourceloc __whenc switch (errno) { case EINTR: case EAGAIN: + case ENOTRECOVERABLE: #if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN case EWOULDBLOCK: #endif