mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-05 12:54:13 +00:00
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:
parent
0869470d96
commit
64286bd5e6
1
net.c
1
net.c
@ -65,6 +65,7 @@ ssize_t _read_nonblock(int fd, void *buf, size_t len, struct __sourceloc __whenc
|
|||||||
switch (errno) {
|
switch (errno) {
|
||||||
case EINTR:
|
case EINTR:
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
|
case ENOTRECOVERABLE:
|
||||||
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
|
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
|
||||||
case EWOULDBLOCK:
|
case EWOULDBLOCK:
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user