Re: kqueue, poll and file descriptor types
Re: kqueue, poll and file descriptor types
- Subject: Re: kqueue, poll and file descriptor types
- From: Tilghman Lesher <email@hidden>
- Date: Mon, 24 Oct 2011 12:21:41 -0500
On Mon, Oct 24, 2011 at 11:35 AM, Joel Reymont <email@hidden> wrote:
>
> On Oct 24, 2011, at 5:32 PM, Shantonu Sen wrote:
>
>> In the abstract, the statement is true (is this a homework question or something?)
>
> There's a chunk of code in the Erlang virtual machine that clips the maximum number of file descriptors to FD_SETSIZE, 1024 by default, at compile time.
>
> It only does this on the Mac, claiming the need to fall back to select when kqueue fails.
While that's true in the default case, one needs only to define
_DARWIN_UNLIMITED_SELECT at compile time (before system headers are
#include'd). You still would need to expand the fd_set to a larger
bitfield, should you use that construct. We've done this in the
Asterisk project, for example.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden