lkml.org 
[lkml]   [2009]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sys_waitid: return -EFAULT for NULL


On Wed, 14 Jan 2009, Michael Kerrisk wrote:
>
> It has zero downside for *us*. But it is yet another example of Linux
> littering the Unix landscape with unnecessary inconsistencies that
> application writers must deal with.

Bah. Not so. It matters not at all if you try to write portable code.

Linux has extensions. Deal with it. We have literally _thousands_ of
things that work on Linux but not on other OS's. The fact is, you can't
just recompile and assume something works, and waitid() has absolutely
nothing to do with it.

> Well, POSIX.1-2001 is fairly clear:
>
> The application shall ensure that the infop argument points to
> a siginfo_t structure.

Right. So the application should do that, and Linux does the right thing.
Problem solved.

Linus


\
 
 \ /
  Last update: 2009-01-14 02:01    [W:0.150 / U:0.660 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site