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

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

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aloha!

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 configure.ac but apparently that has a different variable
> checked. Maybe we should just use "*darwin*|*interix*)" to play safe?
>
> BTW
> http://lists.apple.com/archives/Darwin-userlevel/2009/Dec/msg00004.html
> 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:
js_at_stajlis.springfield.se:/Users/js/tmp>uname -a
Darwin stajlis.springfield.se 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
http://www.strombergson.com/kryptoblog
========================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkupxkoACgkQZoPr8HT30QHQpwCgsvcLnl8b1lsokJ4ypXBVNuBk
XQ4AnRmlqdy8WDtLLckj3btcR5BMrvTj
=QWYN
-----END PGP SIGNATURE-----
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-03-24