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.
This commit is contained in:
Andrew Bettison 2016-09-06 12:07:00 +09:30
parent 0869470d96
commit 64286bd5e6

1
net.c
View File

@ -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