bug-hurd
[Top][All Lists]
Advanced

[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...



reply via email to

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