Subject: Re: [patch] use poll when available on blocking API

Re: [patch] use poll when available on blocking API

From: Joachim Strömbergson <>
Date: Wed, 24 Mar 2010 08:59:06 +0100

Hash: SHA1


Old lurker here jumping in.

On 2010-03-23 22.22, Daniel Stenberg wrote:
> On Tue, 23 Mar 2010, Daniel Stenberg wrote:
>> Even fairly modern Mac OS X machines have broken poll(), and I'm not
>> even sure the most modern ones have that fixed. We did have an Apple
>> guy educate us on these matters within the curl project which made us
>> use that pattern...
> In other words, I think I did the pattern matching wrong. I copied it
> from curl's but apparently that has a different variable
> checked. Maybe we should just use "*darwin*|*interix*)" to play safe?
> seems to indicate that Mac OS X still has a broken poll as of 10.5.8
> which I believe is rather recent.

I tried the snippet in the bug report by Daniel Mack and on my machine
at least it does not hang, but completes directly.

My system is a:>uname -a
Darwin 10.2.0 Darwin Kernel Version 10.2.0...

And the "About this Mac" states that it is Snow Leopard 10.6.2

If Daniels test case is any proof, it seems poll() is fixed in 10.6 and
onwards. Apple, unfortunately is not really a fountain of information
regarding what has been fixed in a release.

Is there some test you need to get performed to clear this I'll be happy
to try and help.

- --
Med vänlig hälsning, Yours

Joachim Strömbergson - Alltid i harmonisk svängning.
Kryptoblog - IT-säkerhet på svenska
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla -

Received on 2010-03-24