bug-hurd
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]