[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] lwip: poll(): return EIO when POLLERR is set
From: |
Samuel Thibault |
Subject: |
Re: [PATCH 1/4] lwip: poll(): return EIO when POLLERR is set |
Date: |
Tue, 14 Aug 2018 00:34:21 +0200 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
Joan Lledó, le sam. 11 août 2018 18:17:07 +0200, a ecrit:
> Needed to properly support poll in glibc (_hurd_select).
Applied, thanks!
> * lwip/io-ops.c (lwip_io_select_common):
> If POLLERR is set, return EIO.
> ---
> 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.11.0
>
>
--
Samuel
<B> l'alim je sais où elle est, elle est juste à côté de la dame qui dort
<g> B: clairement faut revoir les priorités dans la vie
<g> B: une dame ça se retrouve, un uptime...
- Patches: lwip translator, Joan Lledó, 2018/08/07
- [PATCH 1/4] lwip: select/poll(): return EIO when POLLERR is set, Joan Lledó, 2018/08/07
- [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
- Re: [PATCH 2/4] lwip: refactor main demuxer to avoid code duplication, Samuel Thibault, 2018/08/13
- [PATCH 4/4] lwip: Fix a buffer overflow and clear compiler warnings, Joan Lledó, 2018/08/11
- Re: [PATCH 4/4] lwip: Fix a buffer overflow and clear compiler warnings, Samuel Thibault, 2018/08/14
- Re: [PATCH 4/4] lwip: Fix a buffer overflow and clear compiler warnings, Joan Lledó, 2018/08/14
- Re: [PATCH 4/4] lwip: Fix a buffer overflow and clear compiler warnings, Samuel Thibault, 2018/08/14