[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] mi: Make sure fd is non-blocking before select+read
From: |
Tim Rühsen |
Subject: |
Re: [PATCH] mi: Make sure fd is non-blocking before select+read |
Date: |
Tue, 12 May 2020 19:33:35 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
Pushed.
On 12.05.20 19:21, Jose E. Marchesi wrote:
>
> Hi Tim.
>
> On Linux, select() may report a socket file descriptor as
> "ready for reading", while nevertheless a subsequent read blocks.
>
> 2020-05-12 Tim Rühsen <address@hidden>
>
> * poke/pk-mi.c (pk_mi_fd_set_nonblocking): New function.
> (pk_mi_fd_restore_blocking): New function.
> (pk_mi_loop): Set fd to blocking and restore before
> returning.
>
>
> OK for master.
> Thank you!
>
signature.asc
Description: OpenPGP digital signature