Re: [RESEND][RFC PATCH v2] waitfd

Casey Dahlin
2009-01-08T20:35:50Z

Roland McGrath wrote:
>>> Since waitfd shouldn't consume the child termination notification
>>> waitfd should be more widely usable than the wait*() interfaces.
>
> waitid can be used that way with WNOWAIT.

Yes, but waitfd does not have this flag. The reason being waitfd just calls waitid internally, and there is no guarantee (afaik) that calling waitid with WNOWAIT multiple times in succession will yield different results each time. This breaks the streaming behavior of the descriptor.

--CJD