Re: [PATCH] Fix poll() nfds check.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 6 Jul 2006, Ulrich Drepper wrote:

> On 7/5/06, Andrew Morton <[email protected]> wrote:
> > [EINVAL]
> >     The nfds argument is greater than {OPEN_MAX}, or ...
>
> This requirement must be treated the same way as the EMFILE error in
> open(): ignore the OPEN_MAX limit if ulimit says so.  The question is
> what to do if the ulimit < OPEN_MAX.  POSIX does not require OPEN_MAX
> to be the exact limit.

This interpretation makes more sense to me. No hardcoded magic number
limits where the behavior of the syscall changes.

> So, I think removing the OPEN_MAX comparison is the correct way to do
> this here.  If somebody wants strict POSIX compliance they have to set
> ulimit -n to 256.

Andrew, assuming that you're willing to make this change to the code, I
can redo this patch against the latest rc and resend, if that'll make it
easier to apply.

-- Vadim Lobanov
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux