RFD: Rework/extending functionality of mdev

Didier Kryn kryn at in2p3.fr
Thu Mar 19 14:37:46 UTC 2015


Le 18/03/2015 18:41, Laurent Bercot a écrit :
> On 18/03/2015 18:08, Didier Kryn wrote:
>> No, you must write to the pipe to detect it is broken. And you won't
>> try to write before you've got an event from the netlink. This event
>> will be lost.
>
>  I skim over that discussion (because I don't agree with the design) so
> I can't make any substantial comments, but here's a nitpick: if you
> use an asynchronous event loop, your selector triggers - POLLHUP for
> poll(), not sure if it's writability or exception for select()- as
> soon as a pipe is broken.

     Hi Laurent.
     My experience is select() doesn't ever give you anything from 
exception, on Linux.
     And fifosvd must close the write end of the pipe; therefore cannot 
poll for writeability.

     Didier



More information about the busybox mailing list