Re: [RESEND][RFC PATCH v2] waitfd

Oleg Nesterov
2009-01-10T22:48:45Z

On 01/10, Casey Dahlin wrote:
>
> Oleg Nesterov wrote:
>>> From the perspective of waitfd, the only difference between WNOHANG and
>>> O_NONBLOCK is which argument you put the flags in.
>>
>> No. Please see the note about ioctl/fcntl above.
>>
>> Oleg.
>>
> Yes but the actual waitfd call could simply set O_NONBLOCK on the
> descriptor when it receive WNOHANG in the flags, and read the descriptor
> flags going forward.

Ah, I misunderstood your message as if we shouldn't check f_flags at all.

Yes sure.

Oleg.