Re: [RESEND][RFC PATCH v2] waitfd

Scott James Remnant
2009-01-10T14:50:50Z

[-- Attachment #1: Type: text/plain, Size: 828 bytes --]

On Thu, 2009-01-08 at 15:36 -0500, Casey Dahlin wrote:

> 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.
>
This would definitely be a Nice To Have though!

Being able to use waitid() on another process of the same uid, with
WNOHANG, in a streaming fashion would be a *very* cool thing.

Scott
--
Scott James Remnant
scott@canonical.com

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]