cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Mac OS X and poll()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 9 Feb 2007 09:09:06 +0100 (CET)

On Thu, 8 Feb 2007, Daniel Johnson wrote:

> I've been using curl 7.16.1 modified to use poll() instead of select() on
> Mac OS X for the last week. I haven't been able to trigger any problems with
> it and all tests pass. My research indicates two things: poll doesn't work
> when called on anything in /dev (actually a limitation of kqueue(), which is
> used internally by poll), and the bug discussed at
> http://curl.haxx.se/mail/lib-2005-05/0122.html seems to be fixed as of Mac
> OS X 10.4.4 (Darwin 8.4.0).

Nice. Can you come up with a way to detect a "good" Mac OS X version in which
we should use poll() instead of select() ? To have the configure script do
right automatically.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-02-09