Re: [PATCH] waitid system call

Michael Kerrisk
2004-08-31T07:23:13Z

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="us-ascii", Size: 988 bytes --]

Is anyone writing a manual page for this sys call? If not, I will.

> The AIX results someone posted suggested that it does not clear siginfo_t
> fields on WNOHANG early returns.

Yes.

> I still maintain that a POSIX application
> must not assume that waitid will clear any fields.

Despite the fact that I've pushed in the direction of changing
this, I do agree: a portable application must handle weird
behaviours on AIX and HP-UX. (And I would document this in
the man page.)

> However, since the
> majority do, I see no harm in making Linux do so as well.

And I do think this is the right way to go. Perhaps one day
the other implementations will do the Right Thing, or POSIX
will tighten its spec to require the behavior currently
implemented by the majority -- best then that Linux doesn't
imitate the "broken" implementations.

Cheers,

Michael

--
Supergünstige DSL-Tarife + WLAN-Router für 0,- EUR*
Jetzt zu GMX wechseln und sparen http://www.gmx.net/de/go/dsl