Re: kqueue, poll and file descriptor types
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meg.abyt.es; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=DnBX4DhQkFaB/igy7GLxdRCmsc070R/o7Fn0LrwOYX4=; b=L5NxasdUtlfYk0Yw2LpAJuA1A9DbuFjR4KAzguVR1q4I9pvrU+sQFCFJKFNCBQhhj7 lavZmWP0Hhhly0Y/tvuYbXMSpWq0y1PuYO+LwoY9MUS2Q23/qzGWAol96QApB4PM+j8y yAD1EOjUGnq617+mcX/ir9g5e4hUPYNeTTVy8= On Mon, Oct 24, 2011 at 11:35 AM, Joel Reymont <joelr1@gmail.com> 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Tilghman Lesher