* Sascha Schumann <[EMAIL PROTECTED]> [010616 19:03] wrote:
>     Hi,
> 
>     one of my applications uses the SGI State Threads Library
>     (I/O multiplexing scheduler).  At its heart is a function
>     which concatenates the pollfd arrays of all threads and calls
>     poll(2).  As sockets are shared between threads, the size of
>     the final pollfd array can easily be greater than
>     RLIMIT_NOFILE.

Are you sure?

#define RLIMIT_NOFILE   8               /* number of open files */

That would mean that the pollfd array is larger than the amount
of open files you're allowed.  I think it may be a good idea to
actually allow double RLIMIT_NOFILE and FD_SETSIZE for flexibility.

Anyone object?

-- 
-Alfred Perlstein [[EMAIL PROTECTED]]
Instead of asking why a piece of software is using "1970s technology,"
start asking why software is ignoring 30 years of accumulated wisdom.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to