[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/4] lwip: select/poll(): return EIO when POLLERR is set
From: |
Joan Lledó |
Subject: |
[PATCH 1/4] lwip: select/poll(): return EIO when POLLERR is set |
Date: |
Tue, 7 Aug 2018 18:02:40 +0200 |
---
lwip/io-ops.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lwip/io-ops.c b/lwip/io-ops.c
index 636c26f7..1429bc55 100644
--- a/lwip/io-ops.c
+++ b/lwip/io-ops.c
@@ -229,6 +229,9 @@ lwip_io_select_common (struct sock_user *user,
if (ret > 0)
{
+ if (fdp.revents & POLLERR)
+ return EIO;
+
if (fdp.revents & POLLIN)
*select_type |= SELECT_READ;
--
2.17.1
- Patches: lwip translator, Joan Lledó, 2018/08/07
- [PATCH 1/4] lwip: select/poll(): return EIO when POLLERR is set,
Joan Lledó <=
- [PATCH 3/4] lwip: return EINTR when a select() IPC thread is cancelled, Joan Lledó, 2018/08/07
- [PATCH 2/4] lwip: refactor main demuxer to avoid code duplication, Joan Lledó, 2018/08/07
- [PATCH 4/4] lwip: Fix a buffer overflow and clear compiler warnings, Joan Lledó, 2018/08/07
- Re: Patches: lwip translator, Samuel Thibault, 2018/08/09
- [PATCH 2/4] lwip: refactor main demuxer to avoid code duplication, Joan Lledó, 2018/08/11